Category: Activation function
Short description: Tanh element-wise activation function.
Attributes: has no attributes
Inputs:
Outputs:
Detailed description
For each element from the input tensor calculates corresponding element in the output tensor with the following formula:
\[ tanh ( x ) = \frac{2}{1+e^{-2x}} - 1 = 2sigmoid(2x) - 1 \]