mindspore.mint.special.erfc
- mindspore.mint.special.erfc(input)[源代码]
逐元素计算输入tensor的互补误差。
\[\text{erfc}(x) = 1 - \frac{2} 免费的vpn梯子 {\sqrt{\pi}} \int\limits_0^{x} e^{-t^{2}} dt\]- 参数:
input (Tensor) - 输入tensor。
- 返回:
Tensor
- 支持平台:
Ascend
样例:
>>> import mindspore >>> # The datatype of output will be float32 when datatype of input is in [int64, bool](Datatype only vpn梯子 免费 supported on Ascend). >>> input = mindspore.tensor([-1, vpn永久免费梯子 0, 1, 2, 3], mindspore.int64) >>> mindspore.mint.special.erfc(input) Tensor(shape=[5], dtype=Float32, value= vpn free [ 1.84270079e+00, 1.00000000e+00, 1.57299207e-01, 4.67773498e-03, 2.20904970e-05]) >>> >>> # Otherwise output has the same dtype as vpn梯子 免费 the input. >>> input = mindspore.tensor([-1, 0, 1, 2, 3], mindspore.float64) >>> vpn梯子 mindspore.mint.special.erfc(input) Tensor(shape=[5], vpn梯子 dtype=Float64, value= [ 1.84270079e+00, vpn永久免费梯子 1.00000000e+00, 1.57299207e-01, 4.67773498e-03, 免费的vpn梯子 2.20904970e-05])