PyTorch torch.asin 関数


Pytorch torch 参考手册Pytorch torch リファレンスマニュアル

torch.asinPyTorch において要素ごとの逆正弦(arcsine)を計算するための関数です。

関数定義

torch.asin(input, out=None)

使用例

実例

import torch

# テンソルを作成
x = torch.tensor([-1.0, -0.5, 0.0, 0.5, 1.0])

# 逆正弦を計算
result = torch.asin(x)
print(result)

出力結果は次のとおりです:

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

Pytorch torch 参考手册Pytorch torch リファレンスマニュアル

その他の拡張