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

[XLA] Add sqrt and rsqrt opcodes

Pow(x, y) acts like std::pow which complicates trying to use Pow(x, 0.5) to implement sqrt.

Pow(-0, 0.5) is +0 but Sqrt(-0) should be -0.

As such, it makes sense to provide an explicit Sqrt and Rsqrt.

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