Expand description
Binary cross-entropy. Binary cross-entropy loss.
When logits = true the loss is computed in a numerically stable way from
raw logits via [log_sigmoid]; otherwise the inputs are treated as
probabilities and the logs are clamped to avoid −∞.
Structs§
- Binary
Cross Entropy Loss - Calculate the binary cross entropy loss from the input logits and the targets.
- Binary
Cross Entropy Loss Config - Configuration to create a
BinaryCrossEntropyLossusing theBinaryCrossEntropyLossConfig::init.