Computes the logarithmic derivative of the gamma function on input.

tch_digamma(x)

Arguments

x

tensor object

Examples

tch_digamma(tensor(c(1, 0.5)))
#> tensor #> -0.5772 #> -1.9635 #> [ Variable[CPUFloatType]{2} ]