mindspore.Tensor.erfc

Tensor.erfc()[source]

Computes the complementary error function of self tensor element-wise. Refer to mindspore.ops.erfc() for more details.

Returns

Tensor, has the same shap dtype as the self tensor.

Raises

TypeError – If dtype of self tensor is not float16 or float32.

Supported Platforms:

Ascend GPU CPU

Examples

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