PyTorch
torch / torch
torch.erf¶
-
torch.
erf
(input, *, out=None) → Tensor¶ Computes the error function of each element. The error function is defined as follows:
erf(x)=π2∫0xe−t2dt- Parameters
input (Tensor) – the input tensor.
- Keyword Arguments
out (Tensor, optional) – the output tensor.
Example:
>>> torch.erf(torch.tensor([0, -1., 10.])) tensor([ 0.0000, -0.8427, 1.0000])
此页内容是否对您有帮助
感谢反馈!