The cross-entropy loss is calculated between the logits and target to find the most likely class.