Could you copy/paste your code so I can reproduce? You could also open an issue in pytorch/text 5.
In general, we would like to retire iterator in torchtext. Instead, the new abstraction uses DataLoader in torch.utils.data, like text_classification_dataset 11