mindspore.ops.Erfc

class mindspore.ops.Erfc[source]

Computes the complementary error function of x element-wise.

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

Inputs:
  • x (Tensor) - The input tensor with a dtype of float16, float32 or float64.

Outputs:

Tensor, has the same shape and dtype as x.

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor, ops
>>> x = Tensor(np.array([-1, 0, 1, 2, 3]), mindspore.float32)
>>> erfc = ops.Erfc()
>>> output = erfc(x)
>>> print(output)
[1.8427168e+00 1.0000000e+00 1.5728319e-01 4.6912432e-03 2.2351742e-05]