I have recently started on my machine learning and deep learning journey and I was following this DataQuest tutorial. Everything was going fine. Each cell was running just the way it should. Until i got to the training and even then the model trained for 3.5 hours then i got this error when it finished.
Thank you for your help and for the references for loss.item(). It is extremely appreciated. I used googles colab to code in because my computer isnt the greatest its an old hp prodesk 6200 and definitely doesnt have a nvidia gpu. I changed the runtime to gpu i just figured it took so long because of the size of the data set and the amount of epochs. In the video i was following he said it took him til the next day to finish training