Commit a5285d99 authored by Benjamin Kramer's avatar Benjamin Kramer Committed by TensorFlower Gardener
Browse files

[XLA:GPU] Use a fast approximation for tanh

Just reuse the CPU implementation, which in turn is derived from Eigen. It
claims to be accurate within +-1% which is good enough for fast math.

Refactor the CPU implementation into a common file and remove the
VectorSupportLibrary dependency (it's not needed).

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