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