I changes the loss function as you said, I also replace (torch.exp(loss).item) -> loss.item. Now the loss is well below zero. Does this have anything to do with it? and when we have to use torch.exp(loss). Thank you very much.