Negative CrossEntropyLoss value

what’s the formula of CrossEntropyLoss used in pytorch?
I used CrossEntropyLoss, but the loss value is negative. generally speaking, it should be positive.


so what’s wrong?