-
-
Notifications
You must be signed in to change notification settings - Fork 46
Set strict=false for DI in HomotopyContinuation #626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
```julia /home/runner/work/NonlinearSolve.jl/NonlinearSolve.jl/lib/NonlinearSolveHomotopyContinuation/test/single_root.jl:151 Got exception outside of a @test PreparationMismatchError (inconsistent types between preparation and execution): - f!: ✅ - y: ✅ - backend: ✅ - x: ❌ - prep: Vector{Float64} - exec: Base.ReinterpretArray{Float64, 1, ComplexF64, Vector{ComplexF64}, false} - contexts: ✅ If you are confident that this check is superfluous, you can disable it by running preparation with the keyword argument `strict=Val(false)` inside DifferentiationInterface. ``` Reinterpret seems to bug it so it's easiest to just remove it.
else | ||
prep = DI.prepare_jacobian(f, tmp, autodiff, copy(tmp), DI.Constant(p)) | ||
prep = DI.prepare_jacobian(f, tmp, autodiff, copy(tmp), DI.Constant(p), strict = Val(false)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
prep = DI.prepare_jacobian(f, tmp, autodiff, copy(tmp), DI.Constant(p), strict = Val(false)) | |
prep = DI.prepare_jacobian( | |
f, tmp, autodiff, copy(tmp), DI.Constant(p), strict = Val(false)) |
else | ||
tmp = Vector{ComplexF64}(undef, length(u0)) | ||
if variant == Inplace | ||
prep = DI.prepare_jacobian(f, tmp, autodiff, copy(tmp), DI.Constant(p)) | ||
prep = DI.prepare_jacobian(f, tmp, autodiff, copy(tmp), DI.Constant(p), strict = Val(false)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
prep = DI.prepare_jacobian(f, tmp, autodiff, copy(tmp), DI.Constant(p), strict = Val(false)) | |
prep = DI.prepare_jacobian( | |
f, tmp, autodiff, copy(tmp), DI.Constant(p), strict = Val(false)) |
else | ||
prep = DI.prepare_jacobian(f, autodiff, tmp, DI.Constant(p)) | ||
prep = DI.prepare_jacobian(f, autodiff, tmp, DI.Constant(p), strict = Val(false)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
prep = DI.prepare_jacobian(f, autodiff, tmp, DI.Constant(p), strict = Val(false)) | |
prep = DI.prepare_jacobian( | |
f, autodiff, tmp, DI.Constant(p), strict = Val(false)) |
Reinterpret seems to bug it so it's easiest to just remove it.