@smth
Ok, I added that, and tried running the code below, but am getting some odd/erratic results for Top1 accuracy for testset and trainset.
Testset Top1 accuracy tops off at around 20% and Trainset Top1 accuracy hits 100%-bizarre.
It also does not seem to train on all of the data for each epoch-it progresses to the next epoch quicker than expected.
When I take out the WeightedRandomSampler, I get normal results again.
Also, is it correct to use the trainloader with the sampler for obtaining the trainset accuracy?
ERROR PyTorch 0.1.10