-
Hi! I would like to handle multiple different inputs (e.g., node features) of the same graph structure. I can handle them as different graphs, but it might be a little inefficient. Would it be possible to pass batched inputs for a single graph, such as |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Oct 8, 2023
Replies: 1 comment 1 reply
-
There exists a few layers in PyG that support this kind of structure (see the "Static Graph" column here. With it, you can do x = ... # [batch_size, num_nodes, in_channels]
edge_index = ... # edges of a single graph
out = conv(x, edge_index) # [batch_size, num_nodes, out_channels] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
knshnb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There exists a few layers in PyG that support this kind of structure (see the "Static Graph" column here. With it, you can do