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