Skip to content

Commit

Permalink
missed some instances during rnenaming
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Jun 26, 2024
1 parent 89bc2e1 commit 3d3c944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mcmc/abstractmcmc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ end
function varinfo_from_logdensityfn(f::LogDensityProblemsAD.ADGradientWrapper)
return varinfo_from_logdensityfn(parent(f))
end
_varinfo(f::DynamicPPL.LogDensityFunction) = f.varinfo
varinfo_from_logdensityfn(f::DynamicPPL.LogDensityFunction) = f.varinfo

function varinfo(state::TuringState)
θ = getparams(getmodel(state.logdensity), state.state)
# TODO: Do we need to link here first?
return DynamicPPL.unflatten(_varinfo(state.logdensity), θ)
return DynamicPPL.unflatten(varinfo_from_logdensityfn(state.logdensity), θ)
end

# NOTE: Only thing that depends on the underlying sampler.
Expand Down

0 comments on commit 3d3c944

Please sign in to comment.