<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/utils/numerical_utils.py#L8-L35) |

Normalizes an array.

    tf.keras.utils.normalize(
        x, axis=-1, order=2
    )

If the input is a NumPy array, a NumPy array will be returned.
If it's a backend tensor, a backend tensor will be returned.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `x` | Array to normalize. |
| `axis` | axis along which to normalize. |
| `order` | Normalization order (e.g. `order=2` for L2 norm). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A normalized copy of the array. ||

<br />