Skip to content

Commit 037555b

Browse files
committed
Fix one last test
1 parent db4b486 commit 037555b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/ad.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ using DynamicPPL: LogDensityFunction
115115
ldf = LogDensityFunction(
116116
sampling_model, getlogjoint; adtype=AutoReverseDiff(; compile=true)
117117
)
118-
@test LogDensityProblems.logdensity_and_gradient(ldf, vi[:]) isa Any
118+
x = ldf.varinfo[:]
119+
@test LogDensityProblems.logdensity_and_gradient(ldf, x) isa Any
119120
end
120121

121122
# Test that various different ways of specifying array types as arguments work with all

0 commit comments

Comments
 (0)