Skip to content

Commit fc88e4f

Browse files
authored
Fix last block in quickstart.md (#2131)
`train! ` is not exported by Flux
1 parent 3518aa1 commit fc88e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/models/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Instead of calling [`gradient`](@ref Zygote.gradient) and [`update!`](@ref Flux.
9797

9898
```julia
9999
for epoch in 1:1_000
100-
train!(pars, loader, opt) do x, y
100+
Flux.train!(pars, loader, opt) do x, y
101101
y_hat = model(x)
102102
Flux.crossentropy(y_hat, y)
103103
end

0 commit comments

Comments
 (0)