chainerx.tanh

chainerx.tanh(x)

Element-wise hyperbolic tangent function.

Parameters

x (ndarray) – Input array.

Returns

Returned array: \(y = \tanh x\).

Return type

ndarray

Note

During backpropagation, this function propagates the gradient of the output array to the input array x.

See also

numpy.tanh