Commit d5ecacb
authored
Fix Your first Axon model guide (#627)
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.1 parent 1e8cf61 commit d5ecacb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
0 commit comments