Commit e105c101 authored by Kay Zhu's avatar Kay Zhu Committed by TensorFlower Gardener
Browse files

[XLA] In literal_comparison, set absolute error and relative error to infinity

if:

- expected is infinity
- actual != expected

This prevents Near from generating a NaN for relative error.

Also compare the real and imaginary parts of complex numbers independently.

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