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

[XLA:GPU] Force-enable two math transformations that previously were only on with fastmath.

  - pow(x, -.5) => 1/sqrt(x)
  - tanh(x) => fast llvm-ir implementation, instead of __nv_tanh from
    libdevice.

Both of these should be safe.  The main thing we're concerned about when
fastmath is disabled is getting proper NaN/Inf behavior, and these
changes don't affect that.

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