# tf.math.lgamma

<br />

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

Computes the log of the absolute value of `Gamma(x)` element-wise.

#### View aliases


**Main aliases**

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

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

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

<br />

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

<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 />