PyTorch torch.sinh Function


Pytorch torch 参考手册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)

Pytorch torch 参考手册PyTorch torch Reference Manual

Other Extensions