You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still failing for me on NLSolversBase v7.6.0, Optim v0.20.0 and ForwardDiff v0.10.9.
Sorry, I was not clear here, the "fix" was simply that you can supply the types yourself, but it still defaults to the old behavior. Although, as you showed, it didn't really for complex gradients :)
In
NLSolversBase.jl/src/objective_types/twicedifferentiable.jl
Line 18 in 12ceb15
similar(x)
is used for initialization of the gradient array but that need not be the right element type. In a nested derivative computation such asthe gradient will be a vector of duals which therefore causes an error.
The text was updated successfully, but these errors were encountered: