Skip to content

Commit

Permalink
Fix last block in quickstart.md (#2131)
Browse files Browse the repository at this point in the history
`train! ` is not exported by Flux
  • Loading branch information
simonschnake authored Dec 2, 2022
1 parent 3518aa1 commit fc88e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/models/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Instead of calling [`gradient`](@ref Zygote.gradient) and [`update!`](@ref Flux.

```julia
for epoch in 1:1_000
train!(pars, loader, opt) do x, y
Flux.train!(pars, loader, opt) do x, y
y_hat = model(x)
Flux.crossentropy(y_hat, y)
end
Expand Down

0 comments on commit fc88e4f

Please sign in to comment.