oneflow.erfinv

oneflow.erfinv()

Computes the inverse error function of input. The inverse error function is defined in the range \((-1, 1)\) as:

\[\mathrm{erfinv}(\mathrm{erf}(x)) = x\]
Parameters

input (oneflow.Tensor) – the input tensor.

For example:

>>> import oneflow as flow
>>> import numpy as np

>>> input=flow.tensor(np.random.randn(3,3).astype(np.float32))
>>> of_out=flow.erfinv(input)
>>> of_out.shape
oneflow.Size([3, 3])