Autodiff of vector inputs with Enzyme.jl (and possibly Optimization.jl)

That’s the error message as here, so I’ll link my answer here too: Understanding an Enzyme Warning Message - #2 by wsmoses