PyTorch torch.sinh function
PyTorch torch reference manual
torch.sinh is a function in PyTorch used to compute the element-wise hyperbolic sine.
Function definition
torch.sinh(input, out=None)
Usage examples
Example
import
torch
Compute the hyperbolic sine
x
=
torch.
tensor
(
[
1.0
,
0.0
,
1.0
]
)
result
=
torch.
sinh
(
x
)
(
result
)