mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-20 06:49:15 +00:00
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:
committed by
GitHub
parent
352dee5225
commit
889ffc0b1d
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user