Section 5 (PyTorch computer vision): I am getting nan values for train and test loss (lessons 111 and 112) #486
-
😕 Hi all, I tried to complete the testing/training loops for batched data and am getting some odd "nan" values when I am looking at the train loss and test loss that are to accumulate through the code. I think I traced it back to
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
😆 I think I figured it out! The first time I ran it, I did run from the beginning but my code indents were off. It is a little weird, but the second time, I had to rerun the cell with the data loader definition. It worked, and then the |
Beta Was this translation helpful? Give feedback.
😆 I think I figured it out! The first time I ran it, I did run from the beginning but my code indents were off. It is a little weird, but the second time, I had to rerun the cell with the data loader definition. It worked, and then the
"X"
that was passed intomodel_0
, populated. I don't think it was populating because somehow the dataloader wasn't being recognized. I have it working now. 😏