tf.keras.utils.normalize

Normalizes a Numpy array.

x Numpy array to normalize.
axis axis along which to normalize.
order Normalization order (e.g. order=2 for L2 norm).

A normalized copy of the array.