Solved by ptrblck in post #14 
              
              
                Could you print the shape out logps[0]? It should be [batch_size, nb_classes]. 
I also just realized, that you are assigning your Sequential classifier module to model.classifier. 
If you are using inception_v3, you should use model.fc instead. 
Here is a minimal code snippet which should work: 
mod…