NeuromatchAcademy/course-content-dl

W2D3 notebook error

slashdottir opened this issue · 0 comments

In section 4 under ResNet, the tutorial doesn't run, it fails with the following error:


AttributeError Traceback (most recent call last)
in
19
20 dataiter = iter(imagenette_val_loader)
---> 21 images, labels = dataiter.next()
22
23 # Show images

AttributeError: '_MultiProcessingDataLoaderIter' object has no attribute 'next'

changing it to read like this fixed it:

images, labels = next(dataiter)