Replies: 1 comment 2 replies
-
PyG does not support traditional batching via a dedicated batch dimension in order to easily support mini-batching of examples of varying size. As such, batch = Batch.from_data_list(data_list)
conv(batch.x, batch.edge_index) |
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.
-
Using
GCNConv
, I am trying to feed each sample in the batch with a different adjacency matrix. If all of them had the same, I would simply do:For a graph with 6 nodes, a batch size of 4, and where the input tensors have 10 features.
However, if I try to initialize a different adjacency per sample:
I get an error saying that the
edge_index
matrix has three components in the first dimension (of course):Is there any way to do this? Even with a different type of layer, that's not an issue.
Beta Was this translation helpful? Give feedback.
All reactions