latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.tanh
- tensorplay.functional.tanh(input, *, out=None) Tensor[source]
Returns a new tensor with the hyperbolic tangent of the elements of
input.- Parameters:
input (Tensor) – the input tensor.
- Keyword Arguments:
out (Tensor, optional) – the output tensor.
Example:
>>> a = tensorplay.randn(4) >>> a tensor([ 0.8986, -0.7279, 1.1745, 0.2611]) >>> tensorplay.tanh(a) tensor([ 0.7156, -0.6218, 0.8257, 0.2553])
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

