mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-05-15 02:27:57 +00:00
fix identity value of AbsMax (#3058)
* fix identity value of AbsMax
- Identity value of AbsMax should be 0 not numeric<T>::lowest()
* Update include/ck_tile/core/utility/reduce_operator.hpp
resolved comment
Co-authored-by: Christopher Millette <63608002+cgmillette@users.noreply.github.com>
---------
Co-authored-by: Christopher Millette <63608002+cgmillette@users.noreply.github.com>
[ROCm/composable_kernel commit: 35754d2ec8]
This commit is contained in:
committed by
GitHub
parent
0be14218d4
commit
12e9bcd7e2
@@ -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>::lowest();
|
||||
return numeric<T>::zero();
|
||||
};
|
||||
|
||||
template <typename T,
|
||||
|
||||
Reference in New Issue
Block a user