PyTorch DataLoader shuffle

I did an experiment and I did not get the result I was expecting. For the first part, I am using trainloader = torch.utils.data.DataLoader(trainset, batch_size=128, …

Shuffling a list of objects

I have a list of objects and I want to shuffle them. I thought I could use the random.shuffle method, but this seems to fail when the list is of objects. Is there a method for shuffling objects or …