Skip to content

Commit bfad42f

Browse files
splat the data
1 parent a5c3702 commit bfad42f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solve.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function __solve(prob::OptimizationProblem, opt, data = DEFAULT_DATA;
9696
@withprogress progress name="Training" begin
9797
for (i,d) in enumerate(data)
9898
gs = Flux.Zygote.gradient(ps) do
99-
x = prob.f(θ,prob.p)
99+
x = prob.f(θ,prob.p, d...)
100100
first(x)
101101
end
102102
x = f.f(θ, prob.p, d...)

0 commit comments

Comments
 (0)