Open caojoshua opened 1 year ago
As a side note, I think the code should be directly in the repo, rather than stored in zip files. That way users can easily submit PRs to fix code.
Same issue in Self Supervised Learning notebook in Data Augmentation blocks.
- " images, labels = dataiter.next()\n",
+ " images, labels = next(dataiter)\n",
When extracting and showing MNIST, we get
According to this stackoverflow post,
iter(...).next()
is deprecated starting from pytorch 1.13, released in October 2022. I can fix this with this change:(diff looks kinda weird for jupyter notebooks, but I think it gets the point across.)