Commit 8be0d24c authored by Justin Lebar's avatar Justin Lebar Committed by TensorFlower Gardener
Browse files

[XLA] Fix edge cases in erfinv implementation.

We were not handling +/-1 correctly.  Some backends would return the wrong
infinity (i.e. -/+inf rather than +/-inf), while others were returning nan.

Also clean up the tests a tad.

PiperOrigin-RevId: 235271238
parent 932c34f8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment