Calculates:
output = tanh(input) Copy
output = tanh(input)
Gradient:
inputGrad = outputGrad * (1.0 - tanh(input) * tanh(input)) Copy
inputGrad = outputGrad * (1.0 - tanh(input) * tanh(input))
the input tensor of any shape
the output tensor
Generated using TypeDoc
Calculates:
Gradient: