Skip to content
Discussion options

You must be logged in to vote

Note that you need to convert x and s to a "dense batch" as well:

s = self.pooling_gnn(x, edge_index)
x, mask = to_dense_batch(x, batch)
s, _ = to_dense_batch(s, batch)
adj = to_dense_adj(edge_index, batch)
x, adj, link_pred_loss, entropy = dense_diff_pool(x, adj, s, mask)

Let me know if this works :)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@j-adamczyk
Comment options

@rusty1s
Comment options

@j-adamczyk
Comment options

@rusty1s
Comment options

@j-adamczyk
Comment options

Answer selected by j-adamczyk
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