Callback being called now

This commit is contained in:
thebhatman 2019-06-20 00:37:54 +05:30
parent e6d5846e49
commit b194e7e3a8

View File

@ -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