PyTorch torch.asinh Function


Pytorch torch 参考手册PyTorch torch Reference Manual

torch.asinhis a function in PyTorch used to compute the element-wise inverse hyperbolic sine.

Function Definition

torch.asinh(input, out=None)

Usage Examples

Example

import torch

# Create tensor
x = torch.tensor([-3.0, -1.0, 0.0, 1.0, 3.0])

# Compute inverse hyperbolic sine
result = torch.asinh(x)
print(result)

The output result is:

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

Pytorch torch 参考手册PyTorch torch Reference Manual

Other Extensions