mindspore.ops.digamma

View Source On Gitee
mindspore.ops.digamma(input)[source]

Computes the logarithmic derivative of the gamma function on input tensor.

P(x)=ddx(ln(Γ(x)))

Warning

This is an experimental API that is subject to change or deletion.

Parameters

input (Tensor) – The input tensor.

Returns

Tensor

Supported Platforms:

GPU CPU

Examples

>>> import mindspore
>>> input = mindspore.tensor([1.5, 0.5, 9])
>>> output = mindspore.ops.digamma(input)
>>> print(output)
[ 0.03648992 -1.9635109   2.1406415 ]