Skip to content

Commit

Permalink
replaced getranges with vector_getranges
Browse files Browse the repository at this point in the history
  • Loading branch information
Tor Fjelde authored and Tor Fjelde committed Dec 9, 2024
1 parent ff593cb commit 30c7c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/TuringMarginalLogDensitiesExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function Turing.marginalize(
)
# Determine the indices for the variables to marginalise out.
varinfo = DynamicPPL.typed_varinfo(model)
varindices = DynamicPPL.getranges(varinfo, varnames)
varindices = DynamicPPL.vector_getranges(varinfo, varnames)
# Construct the marginal log-density model.
# Use linked `varinfo` to that we're working in unconstrained space and `OptimizationContext` to ensure
# that the log-abs-det jacobian terms are not included.
Expand Down

0 comments on commit 30c7c49

Please sign in to comment.