Skip to content
Discussion options

You must be logged in to vote

I think Eq. (3) in the paper is best implemented in a single data object. With this, you can simple store G in a single edge_index matrix where you increment the individual edge_indices manually, e.g., for the time dimension:

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?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@YunYunY
Comment options

@YunYunY
Comment options

@rusty1s
Comment options

@YunYunY
Comment options

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