tf.linalg.normalize

View source on GitHub

Normalizes tensor along dimension axis using specified norm.

tf.linalg.normalize(
    tensor, ord='euclidean', axis=None, name=None
)

This uses tf.linalg.norm to compute the norm along axis.

This function can compute several different vector norms (the 1-norm, the Euclidean or 2-norm, the inf-norm, and in general the p-norm for p > 0) and matrix norms (Frobenius, 1-norm, 2-norm and inf-norm).

Args:

Returns:

Raises: