This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Repository navigation
Replies: 0 comments
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.
Hello, I am making a gated recurrent unit from scratch and I am having trouble getting the autograd package to calculate the gradients correctly.
Here is the error I am getting:
MXNetError: Check failed: !AGInfo: :IsNone(*i): Cannot differentiate node because it is not in a computational graph. You need to set is_recording to true or use autograd.record() to save computational graphs for backward. If you want to differentiate the same graph twice, you need to pass retain_graph=True to backward.
Have one of yall had this issue before? How can I go about fixing it?
Attached below is the code I am using to compute the gradients. All the weights and biases have had .attach_grad() called on them when I initialized them.
All reactions