Closed scmanjarrez closed 1 year ago
First of all, thank you for your amazing book (and repository). Lot of concepts are extremely well explained and easy to understand.
Previous chapter used next(iter(DL)), however, chapter 5 uses iter(DL).next() which throws the following error:
next(iter(DL))
iter(DL).next()
--------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[149], line 1 ----> 1 images_batch, labels_batch = iter(val_loader).next() 2 logits = sbs_cnn1.predict(images_batch) AttributeError: '_SingleProcessDataLoaderIter' object has no attribute 'next'
I don't know if that function was implemented in previous PyTorch versions, however with PyTorch 1.13, it doesn't work anymore.
Note: Python 3.8.10, jupyterlab 3.5.0
Hi @scmanjarrez
Thank you for your kind words, and for spotting and fixing this issue :-)
Best, Daniel
First of all, thank you for your amazing book (and repository). Lot of concepts are extremely well explained and easy to understand.
Previous chapter used
next(iter(DL))
, however, chapter 5 usesiter(DL).next()
which throws the following error:I don't know if that function was implemented in previous PyTorch versions, however with PyTorch 1.13, it doesn't work anymore.