Skip to content

Commit db4b486

Browse files
committed
Fix LogDensityAt invocation
1 parent 751a340 commit db4b486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logdensityfunction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ function LogDensityProblems.logdensity_and_gradient(
256256
# branches happen to return different types)
257257
return if use_closure(f.adtype)
258258
DI.value_and_gradient(
259-
LogDensityAt(x, f.model, f.getlogdensity, f.varinfo), f.prep, f.adtype, x
259+
LogDensityAt(f.model, f.getlogdensity, f.varinfo), f.prep, f.adtype, x
260260
)
261261
else
262262
DI.value_and_gradient(

0 commit comments

Comments
 (0)