Skip to content

Commit

Permalink
fix callback_f
Browse files Browse the repository at this point in the history
  • Loading branch information
prbzrg committed Aug 4, 2023
1 parent 3534b49 commit 14df439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# SciML interface

function callback_f(ps, l, icnf::AbstractFlows, prgr::Progress, itr_n::Integer)
function callback_f(ps, l, icnf::AbstractFlows, prgr::Progress, itr_n::AbstractVector)
ProgressMeter.next!(
prgr;
showvalues = [(:loss_value, l), (:iteration, itr_n), (:last_update, Dates.now())],
)
itr_n[] += one(itr_n)
itr_n[] += one(itr_n[])
false
end

Expand Down

0 comments on commit 14df439

Please sign in to comment.