torch.special.erf function erf(input: Tensor): Tensor Computes the error function of each element in the input tensor. erf(x)=2π∫0xe−t2dt\text{erf}(x) = \frac{2}{\sqrt{\pi}} \int_0^x e^{-t^2} dterf(x)=π2∫0xe−t2dt Parameters inputTensorThe input tensor Returns Tensor– A new tensor with erf(x) values element-wise See Also PyTorch torch.special.erf()