[mlir] Update approximation range for Tanh operation
authorEugene Zhulenev <ezhulenev@google.com>
Mon, 18 Oct 2021 16:06:09 +0000 (09:06 -0700)
committerEugene Zhulenev <ezhulenev@google.com>
Mon, 18 Oct 2021 17:57:31 +0000 (10:57 -0700)
commitbf32bb7e056c9174cf1cf1a4bf78a339494aed95
tree8dc7a0ef8a4969fe0f0e0b2873781a77882b592d
parent79175f336c1f026bb71e5294e5a98d9c22360a95
[mlir] Update approximation range for Tanh operation

Use wider range for approximating Tanh to match results computed in Eigen with AVX.

Reviewed By: cota

Differential Revision: https://reviews.llvm.org/D112011
mlir/lib/Dialect/Math/Transforms/PolynomialApproximation.cpp
mlir/test/Dialect/Math/polynomial-approximation.mlir