Replies: 3 comments 6 replies
-
It looks like there is a mismatch between indices in
That is, all indices in |
Beta Was this translation helpful? Give feedback.
-
Hey @rusty1s, Could you confirm my understanding of the meaning of both the assertion statements you formulated in your initial answer? In my understanding, the assertion of assert edge_index.min() > 0 ensures that the minimum of edge index's tensor points to a positive integer, depicting a node in the graph. It is important to ensure since all nodes in a graph have positive integers as indices.
assert edge_index.max() < x.size(0) ensures that there is the smaller number of the node feature matrices is given as the maximal index of the node from the adjacency matrix? Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Sorry, I mean |
Beta Was this translation helpful? Give feedback.
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 community,
I am a beginner in geometric learning and attempting to solve the following task at hand. Having transductive learning setting, I wish to forward a custom batch of nodes from Cora dataset through GCNConv network of two layers, which I took over from the example.
The complete/default Cora training dataset consists of
Each of these tensors is of shape
In my code, I have a batch of 100 randomly depicted nodes and therefore the shapes of the three tensors are different
Running my code, I got the following error message
Adding the print statement before the line of the error's occurrence in
message_passing.py
, I got the shapes of the tensors involvedI concluded that the problem lies in the dimensionality mismatch at the message-processing part. The mismatch is caused by the size of adjacency matrix compared with the section of feature matrices under consideration. However, I do not understand how to solve the issue myself and ask therefore for your help.
I have not found similar questions in the Q&A section of the forum, no one having had asked this question before, and certainly, someone will eventually ask such or a similar question.
Many thanks in advance and have yourselves an epic day!
Beta Was this translation helpful? Give feedback.
All reactions