Commit 56104e27 authored by David Majnemer's avatar David Majnemer Committed by TensorFlower Gardener
Browse files

[XLA] Simplify lowering of kIsFinite

We used something notionally equivalent to "(x == x) && abs(x) != inf" to
implement kIsFinite. However, using an ordered comparison against infinity will
return false for NaN inputs as well which obviates the need to explicitly test
for NaN.

PiperOrigin-RevId: 200046365
parent 1b84c344
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment