|
pulsatrix
|
Binary cross-entropy on raw logits – combined sigmoid + BCE, numerically stable. More...


Go to the source code of this file.
Classes | |
| class | pulsatrix::BCEWithLogitsLoss |
loss = mean( max(x,0) - x*y + log(1 + exp(-|x|)) ), over all N*k elements of a (N, k) logit tensor x against a target tensor y of the same shape. More... | |
Namespaces | |
| namespace | pulsatrix |
Binary cross-entropy on raw logits – combined sigmoid + BCE, numerically stable.