The first output tensor returns a valid loss, but as you can see the following have really hight logits for the target class (1), which returns a loss approx. 0.
If you use F.log_softmax or F.softmax on the outputs, you see that your model outputs a probability of ~1 for class1.