pyg-team/pytorch_geometric

Support `AttentionalAggregation` for `HeteroConv`

Open

#7414 aperta il 23 mag 2023

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Python (3514 fork)batch import
1 - Priority P1featurehelp wanted

Metriche repository

Star
 (19.985 star)
Metriche merge PR
 (Merge medio 35g 1h) (14 PR mergiate in 30 g)

Descrizione

🚀 The feature, motivation and pitch

use pyg == 2.3.0
conv = HeteroConv({
    edge_type: GraphConv(-1, second_channels) for edge_type in metadata[1]
}, aggr='attentional')

In pyg 2.3.0, can not use aggr.AttentionalAggregation to aggregation node feature from different edge type in above code, right ? (may i thought is wrong...), so can you give me some advice on how to integrate node features from different edges in pyg ?

Alternatives

No response

Additional context

No response

Guida contributor