jax
f95db305 - [Pallas:TPU] Zero-extend 16-bit argmax/argmin indices to int32

Commit
23 days ago
[Pallas:TPU] Zero-extend 16-bit argmax/argmin indices to int32 tpu.reduce_index on bf16 inputs produces 16-bit indices, and the reduced dimension may have up to 2^16 elements, so the indices must be interpreted as unsigned. Use arith.extui instead of arith.extsi when widening them to int32, which previously turned indices >= 32768 into negative values. PiperOrigin-RevId: 1009974252
Author
Parents
Loading