fixed typo

This commit is contained in:
Dhairya Gandhi 2018-08-17 19:45:10 +05:30
parent 0524964400
commit 999b00b64d

View File

@ -34,7 +34,7 @@ The callback can return `:stop` to interrupt the training loop.
Multiple optimisers and callbacks can be passed to `opt` and `cb` as arrays.
"""
function train!(loss, data, opt; cb = () -> ())
cb = try:
cb = try
runall(cb)
catch e
if e isa StopException || rethrow()