PyTorch torch.igamma 関数
torch.igammaPyTorch で要素ごとに不完全ガンマ関数を計算するための関数です。
関数定義
torch.igamma(input, other, out=None)
使用例
サンプル
import torch
# 不完全ガンマ関数を計算
x = torch.tensor([1.0, 2.0, 3.0])
a = torch.tensor([1.0, 1.0, 1.0])
result = torch.igamma(a, x)
print(result)
# 不完全ガンマ関数を計算
x = torch.tensor([1.0, 2.0, 3.0])
a = torch.tensor([1.0, 1.0, 1.0])
result = torch.igamma(a, x)
print(result)
その他の拡張
Pytorch torch リファレンスマニュアル