Hi Tom! first of all, thank you for you answer. Could you please point to me where, in particular, I end up doing -inf/-inf? When derivating the loss of my example (-1.3863) I should not encounter any -inf in the bacward steps, no? last but not least: I have -inf log-probabilities also in the log_softmax case. Why are the gradients well defined in that case?