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

PyTorch torch.arcsinh function

PyTorch torch.arcsinh function


PyTorch torch reference manual PyTorch torch reference manual

torch.arcsinh is a function in PyTorch used to compute the element-wise inverse hyperbolic sine, the same as torch.asinh in functionality.

Function definition

torch.arcsinh(input, out=None)


Usage examples

Example

import

torch

Creating tensors

x

=

torch.

tensor

(

[

3.0

,

1.0

,

0.0

,

1.0

,

3.0

]

)

Compute the inverse hyperbolic sine

result

=

torch.

arcsinh

(

x

)

print

(

result

)

The output is:

tensor([-1.8184, -0.8814,  0.0000,  0.8814,  1.8184])


PyTorch torch reference manual PyTorch torch reference manual