Quick way to find out the mean of neighbors? #5505
Answered
by
EdisonLeeeee
jonathan-h-w
asked this question in
Q&A
Replies: 1 comment 2 replies
-
from torch_geometric.nn.aggr import MeanAggregation
row, col = edge_index
x_mean = MeanAggregation()(x[row], col) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jonathan-h-w
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Given node features and edge_index, is there a quick way to find out the mean of neighbors for each node? Expecting the output tensor to be the same shape as node features.
Beta Was this translation helpful? Give feedback.
All reactions