Yes and that is the problem 
They shouldn’t have the same dimensions for that loss function. The error tells you that the targets must be of size (60,10) and not (60,2,10).
Also look at: https://pytorch.org/docs/stable/nn.html#nllloss 2