-
Hi, After a global pooling operation, I would like to "expand" the result to the graphs in the batch. Stated otherwise, I need the opposite of scatter. To illustrate, something like
In this case, the global max vector for a given graph is simply repeated for each node of the graph. Is such a function already available? |
Beta Was this translation helpful? Give feedback.
Answered by
rusty1s
Sep 20, 2023
Replies: 1 comment 1 reply
-
You can just do global_max = global_max_pool(x, batch=batch)
y = global_max[batch] |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ldv1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just do