The torchvision implementation of ResNet18 doesn’t use a softmax in the module and the output will contain logits.
If you want to compute the predicted class labels, you can use preds = torch.argmax(outputs, dim=1).