<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#L7292-L7307) |

Repeat each element of a tensor after themselves.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.repeat(
        x, repeats, axis=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Input tensor. |
| `repeats` | The number of repetitions for each element. |
| `axis` | The axis along which to repeat values. By default, use the flattened input array, and return a flat output array. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output tensor. ||

<br />