PyTorch torch.arcsinh Function
PyTorch torch Reference Manual
torch.arcsinhis a function in PyTorch for computing element-wise inverse hyperbolic sine, and is the same astorch.asinhin functionality.
Function Definition
torch.arcsinh(input, out=None)
Usage Example
Example
import torch
# Create tensor
x = torch.tensor([-3.0, -1.0, 0.0, 1.0, 3.0])
# Compute inverse hyperbolic sine
result = torch.arcsinh(x)
print(result)
# Create tensor
x = torch.tensor([-3.0, -1.0, 0.0, 1.0, 3.0])
# Compute inverse hyperbolic sine
result = torch.arcsinh(x)
print(result)
The output is:
tensor([-1.8184, -0.8814, 0.0000, 0.8814, 1.8184])
Other Extensions