Thanks @vdw. It’s working now. For clarification,
I didn’t find any optimizer in the AdaptiveLogSoftmaxWithLoss. I still need to run the optimizer, right?
And for backpropagation, I assume now I need to call outputs.loss.backward().