fix identity values in Max and AbsMax (#3048)

- The identity value method returned the minimum positive number while
we need the lowest number for Max and AbsMax operations
This commit is contained in:
Yashvardhan Agarwal
2025-10-17 19:49:21 +03:00
committed by GitHub
parent 352dee5225
commit 889ffc0b1d

View File

@@ -73,7 +73,7 @@ struct Max
std::is_same_v<T, fp8_t> || std::is_same_v<T, bf8_t>>>
CK_TILE_HOST_DEVICE static constexpr T GetIdentityValue()
{
return numeric<T>::min();
return numeric<T>::lowest();
};
template <typename T,
@@ -96,7 +96,7 @@ struct AbsMax
std::is_same_v<T, fp8_t> || std::is_same_v<T, bf8_t>>>
CK_TILE_HOST_DEVICE static constexpr T GetIdentityValue()
{
return numeric<T>::min();
return numeric<T>::lowest();
};
template <typename T,