CrossEntropy#
- class composer.metrics.CrossEntropy(ignore_index=- 100, dist_sync_on_step=False)[source]#
Torchmetrics cross entropy loss implementation.
This class implements cross entropy loss as a
torchmetrics.Metric
so that it can be returned by themetrics()
.- Parameters