Can I use the torch.nn. MultiMarginLoss instead of using the cross-entropy loss for a classification task?


Should I apply softmax function to the logits before I send the logits into the “MultiMarginLoss” to make the logits as normalized probobility?