jax
062f08bd - Gate HIGHEST-accuracy tanh and logistic numerics on config flags.

Commit
24 days ago
Gate HIGHEST-accuracy tanh and logistic numerics on config flags. Add temporary `jax_tanh_sech_jvp` and `jax_accurate_logistic` config flags (both defaulting to `False`). `jax_tanh_sech_jvp` gates the closed `(tanh, sech^2)` JVP rules for `HIGHEST`-accuracy `lax.tanh` and `lax.logistic`, and `jax_accurate_logistic` gates the `exp(-|x|)` `HIGHEST`-accuracy `lax.logistic` lowering. PiperOrigin-RevId: 1014693979
Author
Parents
Loading