jax
633277da - [jax-buildcop] Widen CPU float16 ULP bound range to `(4.0, 4.5)` in `HIGHEST`-accuracy `tanh` and `logistic` grad tests

Commit
18 days ago
[jax-buildcop] Widen CPU float16 ULP bound range to `(4.0, 4.5)` in `HIGHEST`-accuracy `tanh` and `logistic` grad tests On ARM64 CPU, exhaustive `float16` testing of `grad(lax.logistic(..., accuracy=AccuracyMode.HIGHEST))` and `grad(lax.tanh(..., accuracy=AccuracyMode.HIGHEST))` observes a maximum real ULP error of `3.9206` (quantized bound `4.0`) compared to `4.5` on x86_64 CPU. Specify the CPU `float16` bound as `(4.0, 4.5)` in `LogisticGradTest.test_logistic_grad_highest_accuracy` and `TanhGradTest.test_tanh_grad_highest_accuracy` so the exhaustive tightness check passes on both CPU architectures. PiperOrigin-RevId: 1013989692
Parents
Loading