Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PyTorch torch.igamma function

PyTorch torch.igamma function


PyTorch torch reference manual 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

)

print

(

result

)


PyTorch torch reference manual PyTorch torch reference manual