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