yunjey / pytorch-tutorial

PyTorch Tutorial for Deep Learning Researchers
MIT License
29.54k stars 8k forks source link

Modify the deprecated code in the main.py file of the pytorch_basics repository. #248

Closed Corner430 closed 2 months ago

Corner430 commented 11 months ago

The line images, labels = data_iter.next() has been deprecated. I have updated it to images, labels = next(data_iter).

Additionally, I've split the main.py file into a new file named main.ipynb.