PyTorch torch.asin Function


Pytorch torch 参考手册PyTorch torch Reference Manual

torch.asinIt is a function in PyTorch used to compute the element-wise arcsine.

Function Definition

torch.asin(input, out=None)

Usage Example

Example

import torch

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

# Compute arcsine
result = torch.asin(x)
print(result)

The output result is:

tensor([-1.5708, -0.5236,  0.0000,  0.5236,  1.5708])

Pytorch torch 参考手册PyTorch torch Reference Manual

Other Extensions