TanhShrink
Content copied to clipboard
TanhShrink Activation Function.
This is a hyperbolic tangent (TanH) shrink activation type that implements the element wise function:
TanhShrink(x) = x − tanh(x)
Calls TanhActivation under the hood.