checking exception

This commit is contained in:
Dhairya Gandhi 2018-08-19 17:11:11 +05:30
parent 5c42c8689c
commit 257e2a7d2e

View File

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