Function tvm::codegen::intrin::DispatchNumericallyStableTanh

Function tvm::codegen::intrin::DispatchNumericallyStableTanh#

Function Documentation#

PrimExpr tvm::codegen::intrin::DispatchNumericallyStableTanh(const PrimExpr &e)#

Lower a unary floating-point tanh call using sign-dependent exponential formulas. The expansion avoids the large-positive-input overflow of the symmetric formula; accuracy follows the floating-point arithmetic and exponential lowering in use.