Repository navigation
Return the NNConv state with the nn wrapper in GNNLux - #728
Merged
CarloLucibello merged 1 commit intoNov 7, 2026
Merged
Conversation
This was referenced Nov 7, 2026
CarloLucibello
added a commit
that referenced
this pull request
Nov 11, 2026
…735) * Remove local setup files and notes committed in #729 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Fix changelog inconsistencies Move #717 and #728 out of the already tagged releases, link the PRs that introduced each fix, sort the link references and use one date separator. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Keep changelog edits out of PRs in AGENTS.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- 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.
Fixes #727
NNConvin GNNLux returned_getstate(nn)directly, so the state it handed back was the inner network's state instead of(; nn = ...). Since the forward pass readsst.nn, passing that returned state back into the layer failed with aFieldError, e.g. on the second step ofLux.Training.single_train_step!.This wraps the returned state as
(; nn = _getstate(nn)), the same asEdgeConvandGINConvdo.I added a test with a
BatchNorminside the edge network that checks the returned state has the same type as the input, that the running stats actually get updated, and that the state can be fed back in. It fails on master with theFieldErrorand passes with the fix. The full GNNLux test suite passes locally (Julia 1.13.3; 180 pass, 34 broken, the broken ones are the existing skipped AD backends).Also added a CHANGELOG entry under GNNLux Unreleased.