tf.contrib.losses.get_losses

View source on GitHub

Gets the list of losses from the loss_collection. (deprecated)

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

Args:

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

Returns:

a list of loss tensors.