Skip to content

Commit a3ed2b9

Browse files
authored
Update params initialization in Axon model guide (#615)
The tutorial had just a map as the second argument of init_fn(), but it asks for %Axon.ModelState{} now
1 parent 7902f5c commit a3ed2b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/model_creation/your_first_axon_model.livemd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ predict_fn.(params :: map(tensor), input :: map(tensor) | tensor)
8282
`predict_fn` returns transformed inputs from your model's trainable parameters and the given inputs.
8383

8484
```elixir
85-
params = init_fn.(Nx.template({1, 8}, :f32), %{})
85+
params = init_fn.(Nx.template({1, 8}, :f32), %Axon.ModelState{})
8686
```
8787

8888
<!-- livebook:{"output":true} -->

0 commit comments

Comments
 (0)