You could simply add a softmax layer to the model if you need to see the probabilities.
The output and the predicted class won’t change, as the max logit is also the max probability.
To get the predicted class you could use torch.aargmax(output, 1) with output being the logits or probabilities.