Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PyTorch torch.sinh function

PyTorch torch.sinh function


PyTorch torch reference manual 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

)

print

(

result

)


PyTorch torch reference manual PyTorch torch reference manual