I am using fastai2 on GCP, working through one of the rsna notebooks, and have run into the following error when importing the fastai2 library:
ImportError: cannot import name 'IterableDataset' from 'torch.utils.data'
I did some upgrading of the python packages, currently using pytorch 1.3, and updated to the most recent version of the fastai_dev repo.
I looked at the file associated with the error and there doesn’t seem to be an
IterableDataset to be imported:
from .sampler import Sampler, SequentialSampler, RandomSampler, SubsetRandomSampler, WeightedRandomSampler, BatchSampler from .distributed import DistributedSampler from .dataset import Dataset, TensorDataset, ConcatDataset, Subset, random_split from .dataloader import DataLoader
Any ideas on where I’ve gone wrong?