Skip to content
Discussion options

You must be logged in to vote

The workaround of filling your data with empty node and edge types is the approach I would recommend for this. We are also working on batching with dynamic node and edge types, but this is still WIP.

Note that you will need to define your tensors with correct shape for this to work, e.g.,

data[node_type].x = torch.empty((0, num_features)
data[edge_type].edge_index = torch.empty((2, 0), dtype=torch.long)

Note that shapes need to match except for the node and edge dimension.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@e-mauss
Comment options

@rusty1s
Comment options

@e-mauss
Comment options

@rusty1s
Comment options

@e-mauss
Comment options

Answer selected by e-mauss
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