# tf.math.digamma

<br />

|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/math/digamma) |

Computes Psi, the derivative of Lgamma (the log of the absolute value of

#### View aliases


**Main aliases**

\`tf.digamma\`
**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.digamma`](https://www.tensorflow.org/api_docs/python/tf/math/digamma), [`tf.compat.v1.math.digamma`](https://www.tensorflow.org/api_docs/python/tf/math/digamma), \`tf.compat.v2.math.digamma\`

<br />

    tf.math.digamma(
        x, name=None
    )

`Gamma(x)`), element-wise.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A `Tensor`. Must be one of the following types: `bfloat16`, `half`, `float32`, `float64`. |
| `name` | A name for the operation (optional). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Tensor`. Has the same type as `x`. ||

<br />