does pyg have group_apply_edges functionality? #3599
-
I saw some code online using DGL library and they can do operations on a group of edges that related to some node. For example, they can do softmax normalization to the "target node". Just like the followed webpage says. Do we also have similar methods to do so? Thanks for any advice. https://docs.dgl.ai/en/0.4.x/generated/dgl.DGLGraph.group_apply_edges.html |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes, torch_scatter performs operations based on a group index.
|
Beta Was this translation helpful? Give feedback.
Yes, torch_scatter performs operations based on a group index.
For example, you can perform the the softmax operation you mentioned using torch_goemetric.utils.softmax, which uses torch_scatter internally, as follows