Skip to content
Discussion options

You must be logged in to vote

You need to override the __inc__ function in dataloader. hyper_graph_edge_index[0] needs to be incremented by num_nodes and hyper_graph_edge_index[1] by num_edges while batching multiple graphs. This example from the docs illustrates how that done for bipartite graphs, and you need to do something similar for hyper graphs https://pytorch-geometric.readthedocs.io/en/latest/notes/batching.html#bipartite-graphs.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by BlueBug12
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