jrepo:

should I first order it so that it reflects the order of the classes (1, 2, 3), therefore [0.4, 0.2, 0.4]?


Thanks for explaining!
Assuming that you are mapping the classes [1,2,3] into pytorch equivalent 0-based classes of [0,1,2], you have to pass [0.4, 0.2, 0.4] as you mentioned.