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.

Outputs:

Tensor, has the same shape and dtype as x.

Supported Platforms:

Ascend GPU CPU

Examples

>>> 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]