“multi-target not supported” generally means that the target that you’re passing to the criterion function (in this case, CrossEntropyLoss) is 2 or more dimensions. CrossEntropyLoss requires a target that is 1 dimensional.
If target.size() is something like (1, N) you can make it one-dimensional by doing something like target = target.view(-1).