Link prediction using GAT #7524
Replies: 1 comment 1 reply
-
Does |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Dear PyG community,
Before starting, thank you for your effort and sorry for frequent questions.
I'm trying to construct the GAT model for link prediction, but I countered an error.
This is the base code for the task:
When I run the above code, the error said:
RuntimeError: Trying to backward through the graph a second time (or directly access saved tensors after they have already been freed). Saved intermediate values of the graph are freed when you call .backward() or autograd.grad(). Specify retain_graph=True if you need to backward through the graph a second time or if you need to access saved tensors after calling backward.
KeyError: 1
Full error message
References:
Beta Was this translation helpful? Give feedback.
All reactions