# shuffle the combined batch to prevent the model from learning order
indices = torch.randperm(combined_images.size(0))
combined_images = combined_images[indices]
combined_labels = combined_labels[indices]
You don’t need to do this