tf.keras.utils.normalize

TensorFlow 1 version View source on GitHub

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.