Missed TensorFlow World? Check out the recap. Learn more

tf.keras.backend.l2_normalize

TensorFlow 1 version View source on GitHub

Normalizes a tensor wrt the L2 norm alongside the specified axis.

Aliases:

tf.keras.backend.l2_normalize(
    x,
    axis=None
)

Arguments:

  • x: Tensor or variable.
  • axis: axis along which to perform normalization.

Returns:

A tensor.