Section 09 Lecture 207 seems to be missing instruction from earlier, or the copied in code doesn't work #570
-
Hi @mrdbourke, I got to about the 1:20 point in your video on lecture 207, and almost nothing from that point works. You didn't really specify what library "set_seeds()" is from, and everytime I try to run that I am getting an error: NameError: name 'set_seeds' is not defined. I commented that out to see if perhaps I could get this to run on its own:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Say, I found the definition of the |
Beta Was this translation helpful? Give feedback.
-
Ok, I am a little 😳 shamed....I should have looked here. I missed that on the call |
Beta Was this translation helpful? Give feedback.
Ok, I am a little 😳 shamed....I should have looked here. I missed that on the call
loss_fn = nn.CrossEntropyLoss()
I hadn't placed the parenthesis down. Unfortunately, the error message wasn't too helpful here. Putting those in solve the problem, and the rest of the code works now.