Skip to content

Commit af589d5

Browse files
returned OptimizationFunction doesn't need the colorvec
1 parent 609ad53 commit af589d5

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

ext/OptimizationReverseDiffExt.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ function Optimization.instantiate_function(f, x, adtype::AutoReverseDiff,
2020
end
2121

2222
if f.hess === nothing
23-
2423
hess = function (res, θ, args...)
2524
ReverseDiff.hessian!(res, x -> _f(x, args...), θ)
2625
end

ext/OptimizationSparseDiffExt.jl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,6 @@ function Optimization.instantiate_function(f, x, adtype::AutoSparseFiniteDiff, p
325325
end
326326
return OptimizationFunction{true}(f, adtype; grad = grad, hess = hess, hv = hv,
327327
cons = cons, cons_j = cons_j, cons_h = cons_h,
328-
cons_jac_colorvec = f.cons_jac_colorvec,
329328
hess_prototype = f.hess_prototype,
330329
cons_jac_prototype = f.cons_jac_prototype,
331330
cons_hess_prototype = f.cons_hess_prototype,
@@ -447,7 +446,6 @@ function Optimization.instantiate_function(f, cache::Optimization.ReInitCache,
447446
end
448447
return OptimizationFunction{true}(f, adtype; grad = grad, hess = hess, hv = hv,
449448
cons = cons, cons_j = cons_j, cons_h = cons_h,
450-
cons_jac_colorvec = cons_jac_colorvec,
451449
hess_prototype = hess_sparsity,
452450
cons_jac_prototype = cons_jac_prototype,
453451
cons_hess_prototype = getfield.(hesscaches, :sparsity),

0 commit comments

Comments
 (0)