Skip to content
Discussion options

You must be logged in to vote

I think this is achievable via to_dense_batch, which returns a tensor of shape [batch_size, max_num_nodes, num_features] which you can reshape to [batch_size, max_num_nodes * num_features]. Keep in mind that it will pad with zero features in case your graphs are of varying size.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AlejandroTL
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