Skip to content

Commit

Permalink
Update OptimizationZygoteExt.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaibhavdixit02 authored Sep 4, 2023
1 parent 21cc072 commit 0db6844
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ext/OptimizationZygoteExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ end

function Optimization.instantiate_function(f, cache::Optimization.ReInitCache,
adtype::AutoZygote, num_cons = 0)
num_cons != 0 && error("AutoZygote does not currently support constraints")

_f = (θ, args...) -> f(θ, cache.p, args...)[1]
if f.grad === nothing
Expand Down

0 comments on commit 0db6844

Please sign in to comment.