Skip to content

Refresh Hessian caches on run #186

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

Merged
merged 1 commit into from
Apr 16, 2024
Merged

Refresh Hessian caches on run #186

merged 1 commit into from
Apr 16, 2024

Conversation

ChrisRackauckas
Copy link
Member

Fixes #185 and fixes #127

@@ -540,3 +540,11 @@ Base.getindex(x::ImmutableVector, i::Integer) = x.x[i]
@test J ≈ Matrix(I, 2, 2)
end
end

@testset "Hessian Cache test" begin
Copy link
Member

@gdalle gdalle Apr 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A good strategy to catch more bugs like that would be to initialize all caches with randomized versions of x, y and friends in the test suite. That's how I caught it with DifferentiationInterface.

@gdalle
Copy link
Member

gdalle commented Apr 16, 2024

thanks for the quick fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot reuse HessianCache for another value of x Output depends on values in cache
2 participants