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