Match NVFP4 signed zero encoding
This commit is contained in:
parent
ef84a2786c
commit
9c0992350f
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ __inline__ __device__ uint8_t encode_fp4_e2m1(float value) {
|
|||
} else if (abs_value >= 0.25f) {
|
||||
code = 1;
|
||||
}
|
||||
return negative && code != 0 ? static_cast<uint8_t>(code | 0x8u) : code;
|
||||
return negative ? static_cast<uint8_t>(code | 0x8u) : code;
|
||||
}
|
||||
|
||||
__inline__ __device__ uint8_t encode_fp8_e4m3(float value) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue