SageConv LSTM with Ordering #6533
-
Hi, While aggregating node's neighborhood, I want to order them using their edge weights. Since SageConv doesn't allow this, I created a custom class that handles this with for-loops as below:
Is there a way to handle this by modifying SageConv? I thought about copy-pasting it and making changes there but I can't seem to find where SageConv aggregates neighborhoods to create sequences to pass into LSTM. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For all conv operators aggregation is handled internally by an |
Beta Was this translation helpful? Give feedback.
For all conv operators aggregation is handled internally by an
Aggregation
object. You can create a new aggregation class and pass that as theaggr
argument when initializingSAGEConv
. Check out torch_geometric.nn.aggr for available aggregation operators.