@Oli With your given method I created the dataset. But when I checked
len(trainset.data) 

it’s still 50,000. On the other hand when I checked the trainloader details it showed number of data points to be 5,000? Can you please explain what’s happening here?
Thanks!!