-
Notifications
You must be signed in to change notification settings - Fork 36
Use NoCache
to improve set_to_zero!!
performance with Mooncake
#975
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
Benchmark Report for Commit 0576503Computer Information
Benchmark Results
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #975 +/- ##
==========================================
- Coverage 82.97% 81.31% -1.67%
==========================================
Files 36 37 +1
Lines 3965 3965
==========================================
- Hits 3290 3224 -66
- Misses 675 741 +66 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Pull Request Test Coverage Report for Build 16785074264Details
💛 - Coveralls |
DynamicPPL.jl documentation for PR #975 is available at: |
I just realized that chalk-lab/Mooncake.jl#667 is not sufficient. E.g., for type struct T
field_whose_tangent_type_needs_cache
field_whose_tangent_type_does_not_need_cache
end We can not do But setting |
Which type in particular are you looking to do this for? I'm just wondering whether you're able to convince yourself in practice that this won't be a problem, or something like that. |
My understanding is Lines 9 to 65 in 0b7213f
VarInfo ) is the type we might want to skip using cache for.
We need to use cache for |
Ahh okay. I think I missed this context when we were reviewing chalk-lab/Mooncake.jl#667 . My feeling on this is that the best way to handle this is to ensure the exclusion of aliasing and circular references at cache-construction time (in Mooncake), and then assume that there continues not to be any aliasing / circular referencing in the future. I'm going to DM you about this to see if we can chat in-person, as that might make life easier. |
closed in favor of chalk-lab/Mooncake.jl#680 |
From chalk-lab/Mooncake.jl#644.