I want to create a small subset of the IMDB dataset, so I can test if my program as a whole works before running training on the whole dataset. I tried using a Sampler, but this doesn’t seem to work since the dataset is already loaded as an iterator as follows:
train_iter, test_iter = IMDB(root = ".")
Is there a quick way I can do this?