tf.keras.backend.l2_normalize

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

Defined in tensorflow/python/keras/backend.py.

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

Arguments:

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

Returns:

A tensor.