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

PyTorch torch.erfinv function

PyTorch torch.erfinv function

PyTorch torch.erfinv function


PyTorch torch reference manual PyTorch torch reference manual

torch.erfinv is a PyTorch function for computing the inverse error function element-wise.

Function definition

torch.erfinv(input, *, out=None)


Usage examples

Example

import

torch

Inverse error function example

x

=

torch.

tensor

(

[

0

,

0.5

,

0.9

,

0.99

]

,

dtype

=

torch.

float32

)

result

=

torch.

erfinv

(

x

)

print

(

result

)

 

tensor([0.0000, 0.4769, 1.1631, 2.3267])


PyTorch torch reference manual PyTorch torch reference manual