<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#L593-L609) |

Computes the singular value decomposition of a matrix.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.svd(
        x, full_matrices=True, compute_uv=True
    )

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A tuple of three tensors: a tensor of shape `(..., M, M)` containing the left singular vectors, a tensor of shape `(..., M, N)` containing the singular values and a tensor of shape `(..., N, N)` containing the right singular vectors. ||

<br />