eazygrad.tanh

eazygrad.tanh(input: _Tensor) _Tensor[source]

Apply the hyperbolic tangent activation elementwise.

Parameters:

input (_Tensor) – Input tensor.

Returns:

_Tensor – Tensor containing tanh(input).

See also

torch.tanh