pytorch / 1.8.0 / generated / torch.erfc.html /

torch.erfc

torch.erfc(input, *, out=None) → Tensor

Computes the complementary error function of each element of input. The complementary error function is defined as follows:

e r f c ( x ) = 1 2 π 0 x e t 2 d t \mathrm{erfc}(x) = 1 - \frac{2}{\sqrt{\pi}} \int_{0}^{x} e^{-t^2} dt
Parameters

input (Tensor) – the input tensor.

Keyword Arguments

out (Tensor, optional) – the output tensor.

Example:

>>> torch.erfc(torch.tensor([0, -1., 10.]))
tensor([ 1.0000, 1.8427,  0.0000])

© 2019 Torch Contributors
Licensed under the 3-clause BSD License.
https://pytorch.org/docs/1.8.0/generated/torch.erfc.html