Skip to content

Comments

Fix Your first Axon model guide#627

Merged
polvalente merged 1 commit intoelixir-nx:mainfrom
pguyot:patch-1
Feb 13, 2026
Merged

Fix Your first Axon model guide#627
polvalente merged 1 commit intoelixir-nx:mainfrom
pguyot:patch-1

Conversation

@pguyot
Copy link
Contributor

@pguyot pguyot commented Feb 10, 2026

Fix a crash when evaluating the init_fn cell. The second argument to init_fn., %Axon.ModelState{} was a struct with nil fields internally, and when Nx tried to traverse it as a container, those nil atoms failed the Nx.LazyContainer protocol.

Fix a crash when evaluating the init_fn cell. The second argument to `init_fn.`, `%Axon.ModelState{}` was a struct with `nil` fields internally, and when `Nx` tried to traverse it as a container, those `nil` atoms failed the `Nx.LazyContainer` protocol.
@polvalente polvalente merged commit d5ecacb into elixir-nx:main Feb 13, 2026
4 of 5 checks passed
@polvalente
Copy link
Contributor

Thanks!

@pguyot pguyot deleted the patch-1 branch February 13, 2026 17:44
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.

2 participants