Closed Vaibhavdixit02 closed 2 weeks ago
@Vaibhavdixit02 can you open an issue with a MWE of the error. I'll try to get it quickly thereafter.
@Vaibhavdixit02 @ChrisRackauckas do you have a MWE (I didn't see one by chance). I'll try to get it fixed quickly
I literally mentioned this to Chris like 2 hours ago haha, we are on the same page. Would you be able to help review the sparse support here? I started the effort in the previous home for this code https://github.com/SciML/Optimization.jl/pull/688/files I'll revive that
Ref MWE let's see if the latest release still throws the same error first
This is now blocking https://github.com/SciML/SciMLSensitivity.jl/pull/1067
again, happy to help but need a MWE.
In interim just going to be plugging away at mixed activity stuff.
bumping this
I have been trying to recreate but ended up with a duplicated returns not handled error instead of the one on CI here - when running ]test
this one does show up so it's kind of tricky to figure out a MWE. The issue happens in hessian of a out-of-place closure created here https://github.com/SciML/OptimizationBase.jl/blob/581f4f82675f3f0c100dfd15131881c59cbe53bb/ext/OptimizationEnzymeExt.jl#L368-L377 I suspect the f2
is incorrect but have been unable to pin down the exact issue yet (I am still trying)
That implies type inference fails. Assuming the return is a float, that should likely be changed to the following to explicitly specify that the return is active (if type inference fails)
function f2(x, dx, fnc)
Enzyme.autodiff_deferred(Enzyme.Reverse, fnc, Enzyme.Active, Enzyme.Duplicated(x, dx))
return nothing
end
Checklist
Additional context
Add any other context about the problem here.