# tf.compat.v1.losses.get_regularization_losses

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/ops/losses/util.py#L203-L213) |

Gets the list of regularization losses.

    tf.compat.v1.losses.get_regularization_losses(
        scope=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `scope` | An optional scope name for filtering the losses to return. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list of regularization losses as Tensors. ||

<br />