<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#L5499-L5512) |

Returns the element-wise remainder of division.

#### View aliases


**Main aliases**

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

<br />

    tf.keras.ops.mod(
        x1, x2
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x1` | First tensor. |
| `x2` | Second tensor. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Output tensor, element-wise remainder of division. ||

<br />