RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 0. Got 3 and 2 in dimension 1

i have exactly problem as yours description,have you solve this problem?i also try this Manually calculate loss over a number of images and then back propagate the average loss and update network weight but the net didn’t converge,i 'd be very glad for your reply