mindspore.Tensor.erf

查看源文件
Tensor.erf()

详情请参考 mindspore.ops.erf()

支持平台:

Ascend GPU CPU

样例:

>>> import mindspore
>>> import numpy as np
>>> from mindspore import Tensor
>>> input = Tensor(np.array([-1, 0, 1, 2, 3]), mindspore.float32)
>>> output = Tensor.erf(input)
>>> print(output)
[-0.8427168   0.          0.8427168   0.99530876  0.99997765]