You could get the sample-wise losses by setting reduction='none in the initialization of your criterion.
I’m not sure, which use case you are working ob, but a accuracy for each image can be calculated regardless of the loss reduction.