-
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,4 @@ | ||
using Distributions: | ||
UnivariateDistribution, MultivariateDistribution, MatrixDistribution, Distribution | ||
|
||
const AMBIGUITY_MSG = | ||
"Ambiguous `LHS .~ RHS` or `@. LHS ~ RHS` syntax. The broadcasting " * | ||
"can either be column-wise following the convention of Distributions.jl or " * | ||
"element-wise following Julia's general broadcasting semantics. Please make sure " * | ||
"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 commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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) |
||
|
||
# utility funcs for querying sampler information | ||
require_gradient(spl::Sampler) = false | ||
require_particles(spl::Sampler) = false | ||
using Distributions: Distribution | ||
|
||
# Allows samplers, etc. to hook into the final logp accumulation in the tilde-pipeline. | ||
function acclogp_assume!!(context::AbstractContext, vi::AbstractVarInfo, logp) | ||
|
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
insrc/DynamicPPL.jl
so this shouldn't be needed