openxla / xla

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

Lower pred to i8. #14860

Closed copybara-service[bot] closed 1 month ago

copybara-service[bot] commented 1 month ago

Lower pred to i8.

There are some rare cases where the distinction matters. In particular, there's a test that converts from pred to i8, with the buffer using random bytes, that verifies that the random bytes are preserved.