getting no grad set error during backpropagation. #796
Unanswered
RishabhDotasara
asked this question in
Q&A
Replies: 1 comment
-
Hi @RishabhDotasara , It's hard to tell what's happening without the rest of your code. From here the training loop looks to be good to me. Have you inspected your model/training data and seen if the issue is there? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
i'm getting this error with the following training loop, the grads must have been set by the sequential itself, but it's saying no grads.
Beta Was this translation helpful? Give feedback.
All reactions