PyTorch torch.igamma Function
PyTorch torch Reference Manual
torch.igammaIt is a function in PyTorch used to compute the element-wise incomplete gamma function.
Function Definition
torch.igamma(input, other, out=None)
Usage Example
Example
import torch
# Compute the incomplete gamma function
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)
# Compute the incomplete gamma function
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)
Other Extensions