torch.polygamma¶
-
torch.
polygamma
(n, input, out=None) → Tensor¶ Computes the derivative of the digamma function on
input
. is called the order of the polygamma function.Note
This function is not implemented for .
- Parameters
- Example::
>>> a = torch.tensor([1, 0.5]) >>> torch.polygamma(1, a) tensor([1.64493, 4.9348])