returning

This commit is contained in:
Dhairya Gandhi 2018-08-18 08:24:49 +05:30
parent 999b00b64d
commit 65a5ecccd2

View File

@ -37,9 +37,9 @@ function train!(loss, data, opt; cb = () -> ())
cb = try
runall(cb)
catch e
if e isa StopException || rethrow()
if e isa StopException || rethrow(e)
@info "Stop Condition Met"
break
:stop
opt = runall(opt)
@progress for d in data
l = loss(d...)