Callback being called now
This commit is contained in:
parent
e6d5846e49
commit
b194e7e3a8
@ -67,6 +67,7 @@ function train!(loss, ps, data, opt; cb = () -> ())
|
|||||||
loss(d...)
|
loss(d...)
|
||||||
end
|
end
|
||||||
update!(opt, ps, gs)
|
update!(opt, ps, gs)
|
||||||
|
cb()
|
||||||
catch ex
|
catch ex
|
||||||
if ex isa StopException
|
if ex isa StopException
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user