50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

torch (version 0.11.0)

torch_digamma: Digamma

Description

Digamma

Usage

torch_digamma(self)

Arguments

self

(Tensor) the tensor to compute the digamma function on

digamma(input, out=NULL) -> Tensor

Computes the logarithmic derivative of the gamma function on input.

ψ(x)=ddxln(Γ(x))=Γ(x)Γ(x)

Examples

Run this code
if (torch_is_installed()) {

a = torch_tensor(c(1, 0.5))
torch_digamma(a)
}

Run the code above in your browser using DataLab