public interface ActivationTanH<T extends Tensor> extends Function<T>
tanh(x) = sinh(x)/cosh(x) = 2*σ(2*x) - 1where σ(x) is the sigmoid function, sinh and cosh are hyperbolic sine and cosine functions. It has a range of -1 to 1. Converges towards 1 for positive numbers and -1 for negative numbers.
forward, getOutputShape, getParameters, getParameterShapes, getTensorType, initialize, setParameters