Back to use exp() instead of exp2() since exp() in ck_tile using fast __builtin_amdgcn_exp2f()

This commit is contained in:
Qianfeng Zhang
2025-04-21 14:41:51 +00:00
parent 7316a44ff3
commit 022ed3fd8a

View File

@@ -247,7 +247,7 @@ struct HstuAttentionFwdPipelineQRKSVS
const auto f_silu = [](CompDataType& x) {
const auto one = ck_tile::type_convert<CompDataType>(1.0f);
return x = x / (one + exp2(-log2e_v<CompDataType> * x));
return x = x / (one + exp(-x));
};
using OaccBlockTileType = decltype(gemm_1.MakeCBlockTile());