Repository navigation
feat: Add AGNNConv support for HeteroGraphConv - #649
Merged
Merged
Conversation
| function agnn_conv(l, g::GNNGraph, x::AbstractMatrix) | ||
| check_num_nodes(g, x) | ||
| if l.add_self_loops | ||
| function agnn_conv(g::AbstractGNNGraph, x, β; self_loops=true) |
Member
There was a problem hiding this comment.
the agnn_conv interface should not be changed
The bipartite test in the AGNNConv GPU item used a GNNGraph with feature matrices of different sizes, which fails check_num_nodes, and was never run on CPU. Replace it with value checks against a hand-written AGNN reference (homogeneous and (xj, xi) input), compare HeteroGraphConv outputs with the homogeneous layer on the graph with nodes A ∪ B, and add a Lux tuple-input check. Also revert a stray whitespace edit in the GCNConv hetero testset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Describe the (xj, xi) forward input, state that no self loops are added to relations between different node types, define `x` in the examples, and tick the Heterograph column for AGNNConv in the docs tables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AGNNConv with tuple input needs the new GNNlib.agnn_conv, in both frontends. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CarloLucibello
force-pushed
the
AKS/AGNNHetero
branch
from
November 29, 2026 08:30
f43f822 to
503d6dd
Compare
AGNNConv takes no edge features. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
AGNNConvsupport forHeteroGraphConv(part of #311).AGNNConvaccepts a tuple(xj, xi)of source and target node features, so it works inHeteroGraphConv(GraphNeuralNetworks.jl) and on single-relation heterographs (GNNLux.jl).add_self_loops = true, self loops are only added to relations whose source and target node types coincide.AGNNConv.🧔♂️🤖 Assisted by Claude Opus 5.5