<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/numpy.py#L3311-L3322) |

Return a tensor of given shape and type filled with uninitialized data.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.empty(
        shape, dtype=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `shape` | Shape of the empty tensor. |
| `dtype` | Desired data type of the empty tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The empty tensor. ||

<br />