PyTorch torch.erfinv function
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
)
(
result
)