Function torch::special::expit¶
Defined in File special.h
Function Documentation¶
-
inline Tensor torch::special::expit(const Tensor &self)¶
Computes the expit (also known as the logistic sigmoid function) of input, elementwise See https://pytorch.org/docs/main/special.html#torch.special.expit.
Example:
auto t = torch::randn(128, dtype=kDouble); torch::special::expit(t);