tf.compat.v1.losses.get_losses

View source on GitHub

Gets the list of losses from the loss_collection.

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

Args:

Returns:

a list of loss tensors.