PyTorch torch.erfinv 関数
torch.erfinvPyTorch において、要素ごとに逆誤差関数を計算するための関数です。
関数定義
torch.erfinv(input, *, out=None)
使用例
実例
import torch
# 逆誤差関数の例
x = torch.tensor([0, 0.5, 0.9, 0.99], dtype=torch.float32)
result = torch.erfinv(x)
print(result) # tensor([0.0000, 0.4769, 1.1631, 2.3267])
# 逆誤差関数の例
x = torch.tensor([0, 0.5, 0.9, 0.99], dtype=torch.float32)
result = torch.erfinv(x)
print(result) # tensor([0.0000, 0.4769, 1.1631, 2.3267])
その他の拡張
Pytorch torch リファレンスマニュアル