<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/legacy/losses.py#L4-L20) |

## Methods

### `all`

[View source](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/legacy/losses.py#L11-L13)

    @classmethod
    all()

### `validate`

[View source](https://github.com/keras-team/keras/tree/v3.15.1/keras/src/legacy/losses.py#L15-L20)

    @classmethod
    validate(
        key
    )

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| AUTO | `'auto'` |
| NONE | `'none'` |
| SUM | `'sum'` |
| SUM_OVER_BATCH_SIZE | `'sum_over_batch_size'` |

<br />