# tf.contrib.losses.get_losses

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/losses/python/losses/loss_ops.py#L189-L200) |

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

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

> [!WARNING]
> **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed after 2016-12-30. Instructions for updating: Use tf.losses.get_losses instead.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `scope` | an optional scope for filtering the losses to return. |
| `loss_collection` | Optional losses collection. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| a list of loss tensors. ||

<br />