From 30c7c49188dec33b925fef66bbd03e9bc078b522 Mon Sep 17 00:00:00 2001 From: Tor Fjelde Date: Mon, 9 Dec 2024 13:14:26 +0000 Subject: [PATCH] replaced `getranges` with `vector_getranges` --- ext/TuringMarginalLogDensitiesExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/TuringMarginalLogDensitiesExt.jl b/ext/TuringMarginalLogDensitiesExt.jl index 886b3a9e4..d26a6b4a6 100644 --- a/ext/TuringMarginalLogDensitiesExt.jl +++ b/ext/TuringMarginalLogDensitiesExt.jl @@ -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.