From 999b00b64da0dbb410811686a79aeedc8e60d62b Mon Sep 17 00:00:00 2001 From: Dhairya Gandhi Date: Fri, 17 Aug 2018 19:45:10 +0530 Subject: [PATCH] fixed typo --- src/optimise/train.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/optimise/train.jl b/src/optimise/train.jl index b2631b23..a3af8d66 100644 --- a/src/optimise/train.jl +++ b/src/optimise/train.jl @@ -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()