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...)
|
||||
end
|
||||
update!(opt, ps, gs)
|
||||
cb()
|
||||
catch ex
|
||||
if ex isa StopException
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user