-
Notifications
You must be signed in to change notification settings - Fork 36
Remove dead code #956
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
Remove dead code #956
Conversation
"that the element type of `LHS` is not a supertype of the support type of " * | ||
"`AbstractVector` to eliminate ambiguity." | ||
|
||
alg_str(spl::Sampler) = string(nameof(typeof(spl.alg))) |
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.
alg_str
is in fact used in the Turing test suite, but they just test that it exists, it's not actually used in any Turing library code. So I'm pretty confused. I don't see much of a point, though, because Sampler
is on its way out (once TuringLang/Turing.jl#2555 is done we should be able to remove it).
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.
(I think possibly this is a holdover from the time that Sampler was more heavily used -- a lot of this was gotten rid of a couple versions ago)
using Distributions: | ||
UnivariateDistribution, MultivariateDistribution, MatrixDistribution, Distribution |
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.
there is a blanket using Distributions
in src/DynamicPPL.jl
so this shouldn't be needed
Benchmark Report for Commit 4c14d7bComputer Information
Benchmark Results
|
DynamicPPL.jl documentation for PR #956 is available at: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #956 +/- ##
==========================================
+ Coverage 82.92% 82.98% +0.06%
==========================================
Files 36 36
Lines 3964 3961 -3
==========================================
Hits 3287 3287
+ Misses 677 674 -3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Pull Request Test Coverage Report for Build 15755189020Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
I'll just make a patch bump just to make sure Turing doesn't get caught out by alg_str thing |
Not being used anywhere, AFAICT.