
HeteroConv-net
Graphs and geometry111 ops2.6K params
A wrapper that applies a separate graph convolution to each edge type of a heterogeneous graph.
Graphs and geometry · 53 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
HeteroConv is a generic wrapper for computing graph convolution on heterogeneous graphs. It holds a bipartite message passing layer for each individual edge type. Messages pass from source nodes to target nodes through the layer given for that specific edge type. If multiple relations point to the same destination, their results are aggregated. The aggregation scheme groups the node embeddings generated by different relations, and it can be sum, mean, min, max or cat, with sum as the default.
Compared with the library's to_hetero function, this layer is especially useful when different message passing modules should be applied to different edge types.
Key idea. HeteroConv passes messages with a separate bipartite layer for each edge type and aggregates the results when multiple relations point to the same destination.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.