How to sample atleast one sample from each class for a batch in dataloaders

Hello,

Take a look at this post