mirror of
https://github.com/NVIDIA/cutlass.git
synced 2026-05-12 01:10:08 +00:00
Fix std::abs overloading for bfloat16_t (#1179)
This commit is contained in:
@@ -212,7 +212,7 @@ bool signbit(cutlass::bfloat16_t const& h) {
|
||||
|
||||
CUTLASS_HOST_DEVICE
|
||||
cutlass::bfloat16_t abs(cutlass::bfloat16_t const& h) {
|
||||
return cutlass::bfloat16_t::bitcast(h.raw() & 0x7fffffff);
|
||||
return cutlass::bfloat16_t::bitcast(h.raw() & 0x7fff);
|
||||
}
|
||||
|
||||
CUTLASS_HOST_DEVICE
|
||||
|
||||
Reference in New Issue
Block a user