We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db4b486 commit 037555bCopy full SHA for 037555b
test/ad.jl
@@ -115,7 +115,8 @@ using DynamicPPL: LogDensityFunction
115
ldf = LogDensityFunction(
116
sampling_model, getlogjoint; adtype=AutoReverseDiff(; compile=true)
117
)
118
- @test LogDensityProblems.logdensity_and_gradient(ldf, vi[:]) isa Any
+ x = ldf.varinfo[:]
119
+ @test LogDensityProblems.logdensity_and_gradient(ldf, x) isa Any
120
end
121
122
# Test that various different ways of specifying array types as arguments work with all
0 commit comments