Commit d1ba2719 authored by Kay Zhu's avatar Kay Zhu Committed by Gunhan Gulsoy
Browse files

[XLA] In HloEvaluator, fix an issue for HandleAbs to handle complex numbers

more correctly:

- abs([complex numbers]) would yield floats. However since the specilization for
HandleAbs is based on the return type (float), we'd CHECK fail due to float !=
complex when accessing the elements of the operand (complex).
- enable unary_op_test for interpreter.

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