Skip to content

Glossary: Deep Learning Basics

BCEWithLogitsLoss

Also written: nn.BCEWithLogitsLoss

PyTorch's loss for yes/no predictions. It takes raw logits and float 0.0/1.0 targets and applies the sigmoid inside, which avoids the silent-learning-stop problem of a sigmoid followed by `BCELoss`.

Where the book teaches it

Related terms

BCE (binary cross-entropy)LogitSigmoid