-
Hi, I have two questions regarding how to batch multiple graphs with different number of nodes and create a new adjacency matrix Background: Two questions I have:
Thank you very much. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think Eq. (3) in the paper is best implemented in a single for i in range(4):
edge_indices[i][0] += ... # Add the number of previous nodes in the time dimension.
data.edge_index = torch.cat(edge_indices, dim=1) Does that help you? |
Beta Was this translation helpful? Give feedback.
I think Eq. (3) in the paper is best implemented in a single
data
object. With this, you can simple storeG
in a singleedge_index
matrix where you increment the individualedge_indices
manually, e.g., for the time dimension:Does that help you?