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