<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/core.py#L1052-L1066) |

Convert a tensor to a NumPy array.

    tf.keras.ops.convert_to_numpy(
        x
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | A tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A NumPy array. ||

<br />