Expand description
Cross-entropy (multi-class). Cross-entropy loss accepting floating-point target distributions.
A lighter variant of [burn::nn::loss::CrossEntropyLoss]: it takes soft
float targets (one-hot, soft labels, or raw logits) rather than integer
class indices, and drops padding/weights/label-smoothing. output_logits
and target_logits control whether each side is normalised (log-softmax /
softmax) before the loss.
Structsยง
- Cross
Entropy Loss - Calculate the cross-entropy loss from the output logits and the targets.
- Cross
Entropy Loss Config - Configuration to create a
CrossEntropyLossusing theCrossEntropyLossConfig::init.