Merge #1213
1213: Fixing indentation in train! docstring r=CarloLucibello a=natema One code block is not correctly displayed in the doc of [Flux.Optimise.train! ](https://fluxml.ai/Flux.jl/stable/training/training/#Flux.Optimise.train!). Based on the previous code block, I guess it's an indentation problem. Co-authored-by: natema <natema@users.noreply.github.com>
This commit is contained in:
commit
e1f80d4627
|
@ -68,8 +68,7 @@ and compute the gradient of `loss(d)`.
|
|||
A callback is given with the keyword argument `cb`. For example, this will print
|
||||
"training" every 10 seconds (using [`Flux.throttle`](@ref)):
|
||||
|
||||
train!(loss, params, data, opt,
|
||||
cb = throttle(() -> println("training"), 10))
|
||||
train!(loss, params, data, opt, cb = throttle(() -> println("training"), 10))
|
||||
|
||||
The callback can call [`Flux.stop`](@ref) to interrupt the training loop.
|
||||
|
||||
|
|
Loading…
Reference in New Issue