Replies: 1 comment 2 replies
-
How do you encode the different edges across multiple frames? I don't think there is any opportunity to call If you have duplicated edges, that means that you will receive multiple messages coming from the same neighbor. As such, you give a "higher weight" to this kind of neighbor. |
Beta Was this translation helpful? Give feedback.
2 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.
-
✋ Background:
I run a GNN on a graph with more than 350 nodes. Each graph has 64 historical frames. The length of
edge_index
in each frame is different (approximately 8 000 ~ 20 000 edges ). The output is node value in the next frame.My GNN can deal with each frame one by one under
batch_size=1
. It seems that there are 64 batches for GNN model.If my GNN deal with
batch_size=40
, then the input willtorch.cat
the k-th frame over all 40 batches. As a result, theedge_index
will very long, almost 512 000 ~ 1 280 000 edges. They are lots of repeated edges. It seems that there are 40*64 batches for GNN model.❓ My question
torch.unique
them before I put them into GNN? I mean removing all repeatededge_index
.Thank you 😄
Beta Was this translation helpful? Give feedback.
All reactions