catching exception

This commit is contained in:
Dhairya Gandhi 2018-08-19 17:38:00 +05:30
parent 257e2a7d2e
commit 9c98272cf0

View File

@ -43,7 +43,7 @@ function train!(loss, data, opt; cb = () -> ())
try try
cb() cb()
catch ex catch ex
if ex isa StopException() if ex isa StopException
@info "Stop condition met" @info "Stop condition met"
break break
else else