Skip to content

How to efficiently batch multiple instances of the same graph (only difference being node embeddings) #6247

Answered by rusty1s
jasperhyp asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, not all GNN operators can operate on 3D tensors. It is currently recommended to follow the standard PyG batching in other cases. This will solely replicate the edge_index for each example in the mini-batch once, which is negligible in terms of memory consumption.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jasperhyp
Comment options

Answer selected by jasperhyp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants