mindspore.ops.Erfinv

class mindspore.ops.Erfinv[source]

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

Refer to mindspore.ops.erfinv() for more details.

Inputs:
  • input_x (Tensor) - The input tensor to compute with, with data type float16, float32 or float64.

Outputs:

Tensor, has the same shape and dtype as input_x.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor, ops
>>> x = Tensor(np.array([0, 0.5, -0.9]), mindspore.float32)
>>> erfinv = ops.Erfinv()
>>> output = erfinv(x)
>>> print(output)
[ 0.          0.47695306 -1.1630805 ]