I think that would be
import torch.nn.functional as F
F.cross_entropy()

or the equivalent (object-oriented API)
torch.nn.CrossEntropyLoss
These take the logits as inputs and compute the log softmax and pass it to the neg log likelihood loss (/multinomial logistic loss) function internally.