@justusschock Good tip on the zero vs. one indexing
In an NLP setting where you pad sequences to matching lengths, the customary approach is to use 0 for the padding index. In that case, the non-padding classes should be labeled [1, 2, ... N]. Since NLLLoss can’t handle a one-indexed encoding, is the correct approach to allow N + 1 total classes and set ignore_index=0  when initializing the NLLLoss criterion?