This class implements cross entropy loss as a torchmetrics.Metric so that it can be returned by the
metrics().
Parameters
ignore_index (int, optional) โ Specifies a target value that is ignored
and does not contribute to the input gradient. ignore_index is only applicable when the target
contains class indices. Default: -100.