openxla / xla

A machine learning compiler for GPUs, CPUs, and ML accelerators
Apache License 2.0
2.64k stars 418 forks source link

Fix nextafter for FP8 FNUZ types. #17885

Closed copybara-service[bot] closed 1 week ago

copybara-service[bot] commented 1 week ago

Fix nextafter for FP8 FNUZ types.

Before, it would return NaN if calling nextafter(negative_value_closest_to_zero, 1).