PyTorch torch.igamma function
PyTorch torch reference manual
torch.igamma A function in PyTorch for computing the element-wise incomplete gamma function.
Function definition
torch.igamma(input, other, out=None)
Usage examples
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
)
(
result
)