returning
This commit is contained in:
parent
999b00b64d
commit
65a5ecccd2
@ -37,9 +37,9 @@ function train!(loss, data, opt; cb = () -> ())
|
|||||||
cb = try
|
cb = try
|
||||||
runall(cb)
|
runall(cb)
|
||||||
catch e
|
catch e
|
||||||
if e isa StopException || rethrow()
|
if e isa StopException || rethrow(e)
|
||||||
@info "Stop Condition Met"
|
@info "Stop Condition Met"
|
||||||
break
|
:stop
|
||||||
opt = runall(opt)
|
opt = runall(opt)
|
||||||
@progress for d in data
|
@progress for d in data
|
||||||
l = loss(d...)
|
l = loss(d...)
|
||||||
|
Loading…
Reference in New Issue
Block a user