Skip to content

Commit 1c5087a

Browse files
committed
Fix @logpdf() issue
1 parent 66f5231 commit 1c5087a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function replace_logpdf!(model_info)
200200
vi = model_info[:main_body_names][:vi]
201201
ex = MacroTools.postwalk(ex) do x
202202
if @capture(x, @logpdf())
203-
:($(DynamicPPL.getlogp)($vi))
203+
:($(vi).logp[])
204204
else
205205
x
206206
end

0 commit comments

Comments
 (0)