-
Notifications
You must be signed in to change notification settings - Fork 219
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
Partial fix for #2095 #2096
Partial fix for #2095 #2096
Conversation
Thanks, @torfjelde -- looks good to me, but the use of an immutable |
Yeah I'll have a look at this later 👍 |
Okay, so I figured out what the issue is, and the fix is somewhat annoying.
We can add this quite "easily" for |
Okay, so this should now be fixed by TuringLang/DynamicPPL.jl#542 EDIT: Yep, the failing example now runs nicely locally. |
Is there a reason why we're doing a lot of progress reporting during tests @yebai @devmotion ? It makes it quite annoying to determine which tests are actually failing by inspecting the logs 😕 |
I don"t recall any previous discussions. I think it would be good to check that progress logging "works" by sampling with progress logging in the tests - but I think this could be limited to a few selected examples and in the remaining |
There are no specific reasons for excessive sampling logs. @torfjelde, maybe open an issue to track suggestions for a test refactoring PR? |
Pull Request Test Coverage Report for Build 8057174497Details
💛 - Coveralls |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2096 +/- ##
======================================
Coverage 0.00% 0.00%
======================================
Files 21 21
Lines 1368 1368
======================================
Misses 1368 1368 ☔ View full report in Codecov by Sentry. |
This is a partial fix for #2095. Currently, HMC won't work with vectors, etc. of variables which have differently sized support in the transformed space, e.g.
breaks with a similar error to that mentioned in #2095.
This occurs because
unflatten
, which is used inDynamicPPL.LogDensityFunction
, attempts to reconstruct using aVarInfo
which has a much larger vector for underlying storage than the one provided as input, e.g.varinfo
is working with 3 x 5 dimensionalxs
but is only using a subset of the indexes, while the provided vector will be (3 - 1) x 5 dimensional since it's in linked space.We can fix this by simply using the immutable
DynamicPPL.link
, which results in the "underlying"varinfo
also using (3 - 1) x 5 dimensional storage forxs
.