[docs] replace :stop with Flux.stop()

This commit is contained in:
Dhairya Gandhi 2019-01-10 16:34:07 +05:30
parent 7484c54f03
commit f00e1cdedf
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ Flux.train!(loss, params, data, opt,
cb = throttle(() -> println("training"), 10))
```
The callback can return `:stop` to interrupt the training loop.
The callback can call `Flux.stop()` to interrupt the training loop.
Multiple optimisers and callbacks can be passed to `opt` and `cb` as arrays.
"""