PyTorch torch.erfinv Function
Pytorch torch Reference Manual
torch.erfinvIt is a function in PyTorch used to compute the inverse error function element-wise.
Function Definition
torch.erfinv(input, *, out=None)
Usage Example
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])
# 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])
Other Extensions