# tf.compat.v1.losses.get_regularization_loss

<br />

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

Gets the total regularization loss.

    tf.compat.v1.losses.get_regularization_loss(
        scope=None, name='total_regularization_loss'
    )

<br />

<br />

<br />

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

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A scalar regularization loss. ||

<br />