It doesn’t just show a tensor when you print the value, it shows a tuple of tensors. Although if you past aux_logits=False to the constructor as @ptrblck said  you shouldnt encounter this problem anymore, but if you do, just try running this line instead
loss = criterion(y_pred[0], label)