Tanh
Tanh()
Content copied to clipboard
Hyperbolic tangent activation function.
Transforms input 'x' according formula:
tanh(x) = sinh(x)/cosh(x) = ((exp(x) - exp(-x))/(exp(x) + exp(-x)))
Calls TanhActivation under the hood.
Hyperbolic tangent activation function.
Transforms input 'x' according formula:
tanh(x) = sinh(x)/cosh(x) = ((exp(x) - exp(-x))/(exp(x) + exp(-x)))
Calls TanhActivation under the hood.