Repository navigation
feat: Add GatedGraphConv support for HeteroGraphConv - #653
Merged
Merged
Conversation
CarloLucibello
force-pushed
the
AKS/GatedGraphHetero
branch
from
November 29, 2026 08:35
63107b7 to
f28f5d5
Compare
The heterograph change built the messages of every step from the initial padded features, so homogeneous inputs with num_layers > 1 no longer matched the GGNN recursion. Messages again come from the evolving hidden state, unless distinct source features are given (e.g. another node type): those have no hidden state in the relation and stay fixed, padded to `dims`. Source features are now also checked against `dims`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Check homogeneous and heterograph outputs (num_layers = 3) against a hand-written loop, including a relation between nodes of the same type, and exercise tuple input in the Lux layer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CarloLucibello
force-pushed
the
AKS/GatedGraphHetero
branch
from
November 29, 2026 10:21
f28f5d5 to
4361705
Compare
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
GatedGraphConvsupport forHeteroGraphConv(part of #311).GatedGraphConvaccepts a tuple(xj, xi)of source and target node features, in both GraphNeuralNetworks.jl and GNNLux.jl.xjandxiare distinct arrays (source and target nodes of different types), the padded source features stay fixed across thenum_layerssteps while the target states evolve through the GRU. Relations within one node type keep the full gated recursion.outnow raise an error, like target features.num_layers > 1, for homogeneous graphs and heterographs.🧔♂️🤖 Assisted by Claude Opus 5.5