View source: R/gen-namespace.R
torch_digamma | R Documentation |
Digamma
torch_digamma(self)
self |
(Tensor) the tensor to compute the digamma function on |
Computes the logarithmic derivative of the gamma function on input
.
\psi(x) = \frac{d}{dx} \ln\left(\Gamma\left(x\right)\right) = \frac{\Gamma'(x)}{\Gamma(x)}
if (torch_is_installed()) {
a = torch_tensor(c(1, 0.5))
torch_digamma(a)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.