latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.sinh
- tensorplay.functional.sinh(input, *, out=None) Tensor[source]
Returns a new tensor with the hyperbolic sine 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.5380, -0.8632, -0.1265, 0.9399]) >>> tensorplay.sinh(a) tensor([ 0.5644, -0.9744, -0.1268, 1.0845])Note
When
inputis on the CPU, the implementation of tensorplay.sinh may use the Sleef library, which rounds very large results to infinity or negative infinity. See here for details.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

