Solved by Oli in post #6 
              
              
                Code says more than words  
probs = nn.Softmax(dim=1) # Or logsoftmax
criterion = nn.CrossEntropyLoss() 

outputs = model(inputs)
softmax_output = probs(outputs)
loss = criterion(outputs , labels)