Missed TensorFlow World? Check out the recap. Learn more

tf.losses.get_regularization_losses

tf.losses.get_regularization_losses(scope=None)

Defined in tensorflow/python/ops/losses/util.py.

Gets the list of regularization losses.

Args:

  • scope: An optional scope name for filtering the losses to return.

Returns:

A list of regularization losses as Tensors.