Function torch::special::erf¶
Defined in File special.h
Function Documentation¶
-
inline Tensor torch::special::erf(const Tensor &self)¶
Computes the error function See https://pytorch.org/docs/main/special.html#torch.special.erf.
Example:
auto t = torch::randn(128, dtype=kDouble); torch::special::erf(t);