-
Hi, |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Apr 25, 2021
Replies: 1 comment
-
You can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zcaicaros
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use
torch_geometric.utils.to_dense_batch
to achieve that. Note that for graphs with varying number of nodes, it will return a tensor of shape[batch_size, max_num_nodes, output_dim]
, filled with zeros for smaller graphs.