powered by
Polygamma
torch_polygamma(n, self)
(int) the order of the polygamma function
(Tensor) the input tensor.
Computes the \(n^{th}\) derivative of the digamma function on input. \(n \geq 0\) is called the order of the polygamma function.
input
$$ \psi^{(n)}(x) = \frac{d^{(n)}}{dx^{(n)}} \psi(x) $$
# NOT RUN { if (torch_is_installed()) { # } # NOT RUN { a = torch_tensor(c(1, 0.5)) torch_polygamma(1, a) # } # NOT RUN { } # }
Run the code above in your browser using DataLab