mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-14 18:17:44 +00:00
Use type_convert to convert float constant to CompDataType
This commit is contained in:
@@ -472,7 +472,7 @@ struct HstuAttentionWithSoftmaxFwdPipelineQRKSVS
|
||||
{
|
||||
// use the m_old[i] as the m-for-stablization if m_old[i] - m[i] >= -8.0f
|
||||
// and still keep the m-for-stablization in m[]
|
||||
if(m_old[i_idx] - m[i_idx] >= -8.0f)
|
||||
if(m_old[i_idx] - m[i_idx] >= type_convert<CompDataType>(-8.0f))
|
||||
m(i_idx) = m_old[i_idx];
|
||||
|
||||
sweep_tile_span(p_spans[number<1>{}], [&](auto idx1) {
|
||||
|
||||
@@ -478,7 +478,7 @@ struct HstuAttentionWithSoftmaxFwdPipelineQRKSVSTrLoad
|
||||
{
|
||||
// use the m_old[i] as the m-for-stablization if m_old[i] - m[i] >= -8.0f
|
||||
// and still keep the m-for-stablization in m[]
|
||||
if(m_old[i_idx] - m[i_idx] >= -8.0f)
|
||||
if(m_old[i_idx] - m[i_idx] >= type_convert<CompDataType>(-8.0f))
|
||||
m(i_idx) = m_old[i_idx];
|
||||
|
||||
sweep_tile_span(p_spans[number<1>{}], [&](auto idx1) {
|
||||
|
||||
Reference in New Issue
Block a user