<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/ops/linalg.py#L107-L120) |

Computes the determinant of a square tensor.

#### View aliases


**Main aliases**

[`tf.keras.ops.linalg.det`](https://www.tensorflow.org/api_docs/python/tf/keras/ops/det)

<br />

    tf.keras.ops.det(
        x
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor of shape `(..., M, M)`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tensor of shape `(...,)` representing the determinant of `x`. ||

<br />