Skip to content

feat: DrawNNXModule tolerates non-Param Variables - #32

Merged
jlperla merged 1 commit into
mainfrom
fix/draw-nnx-module-nondiff
Aug 18, 2026
Merged

feat: DrawNNXModule tolerates non-Param Variables#32
jlperla merged 1 commit into
mainfrom
fix/draw-nnx-module-nondiff

Conversation

@jlperla

@jlperla jlperla commented Aug 18, 2026

Copy link
Copy Markdown
Member

DrawNNXModule now splits drawn modules with nnx.split(module, nnx.Param, ...), so modules carrying non-Param Variables (scaling constants, statistics) draw their Param state instead of raising a non-exhaustive-filter error; the residual's merge supplies the rest. Param-only modules draw identically.

Bumps the version to 2.8.0; adds a test covering a module with a non-Param nnx.Variable (draw structure and a multi-start solve).

🤖 Generated with Claude Code

https://claude.ai/code/session_017YKnhxzfpQfwteoCvLp5cj

Split the drawn module with nnx.split(module, nnx.Param, ...) so modules
carrying non-Param Variables (scaling constants, statistics) draw their
Param state instead of raising a non-exhaustive-filter error; the
residual's merge supplies the rest. Param-only modules draw identically.

Co-Authored-By: Mecha Perla (Claude) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017YKnhxzfpQfwteoCvLp5cj
@jlperla
jlperla merged commit 41fb886 into main Aug 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant