How do I properly incorporate random sampling with replacement with this method?
I tried the following, but it does not work:
rand_sampler = torch.utils.data.RandomSampler(train_set, num_samples=64, replacement=True)
train_sampler = torch.utils.data.DataLoader(train, batch_size=64, sampler=rand_sampler)

When I try to do what you suggested, I get the following error:
> iterator = iter(train_sampler)
> iterator.next()

*** TypeError: 'function' object is not subscriptable