catching exception
This commit is contained in:
parent
257e2a7d2e
commit
9c98272cf0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user