PyTorch torch.sinh Function
PyTorch torch Reference Manual
torch.sinhIt 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 hyperbolic sine
x = torch.tensor([-1.0, 0.0, 1.0])
result = torch.sinh(x)
print(result)
# Compute hyperbolic sine
x = torch.tensor([-1.0, 0.0, 1.0])
result = torch.sinh(x)
print(result)
Other Extensions