Getting train_loss & test_loss as nan when executing traing & testing loop #832
-
Hello there I am currently here in the video (or say here in the ZTM solutions notebook) I've gone through the code several times by looking for errors, comparing it with the solution notebook but I am not able to figure out Why am Igetting nan in my train_loss , test_loss and no change in my accuracy ???Please have a look at the code & its output below. Help if you know how to navigate around this problem. Thanks! My code:
Output:
|
Beta Was this translation helpful? Give feedback.
Answered by
Arun-Kumar-Rathod
Feb 19, 2024
Replies: 1 comment
-
Solved: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Arun-Kumar-Rathod
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved:
I forgot to add parantheses after
optimizer.zero_grad
()😂