erfinv¶
- paddle. erfinv ( x, name=None ) [source]
-
The inverse error function of x. Please refer to erf
\[erfinv(erf(x)) = x.\]- Parameters
-
x (Tensor) – An N-D Tensor, the data type is float32, float64.
name (str, optional) – Name for the operation (optional, default is None). For more information, please refer to Name.
- Returns
-
out (Tensor), an N-D Tensor, the shape and data type is the same with input.
Example
import paddle x = paddle.to_tensor([0, 0.5, -1.], dtype="float32") out = paddle.erfinv(x) # out: [0, 0.4769, -inf]