PyTorch torch.igamma Function


Pytorch torch 参考手册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)

Pytorch torch 参考手册PyTorch torch Reference Manual

Other Extensions