Yeah, right, my bad. We had this issue already in the past.
In that case, just leave the instantiation of your models with aux_logits=True and just pass the first output of your model to the criterion:
outputs = model(data)
loss = criterion(outputs[0], target)