tf.losses.get_losses(scope=None, loss_collection=tf.GraphKeys.LOSSES)

tf.losses.get_losses(scope=None, loss_collection=tf.GraphKeys.LOSSES)

Gets the list of losses from the loss_collection.

Args:

  • scope: an optional scope for filtering the losses to return.
  • loss_collection: Optional losses collection.

Returns:

a list of loss tensors.

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