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 6d163fd commit f17300aCopy full SHA for f17300a
test/ad.jl
@@ -23,6 +23,7 @@ using DynamicPPL: LogDensityFunction
23
varinfos = DynamicPPL.TestUtils.setup_varinfos(m, rand_param_values, vns)
24
25
@testset "$(short_varinfo_name(varinfo))" for varinfo in varinfos
26
+ # TODO: This runs unlinked. Should we test linked as well?
27
f = LogDensityFunction(m, varinfo)
28
x = DynamicPPL.getparams(f)
29
# Calculate reference logp + gradient of logp using ForwardDiff
@@ -56,9 +57,11 @@ using DynamicPPL: LogDensityFunction
56
57
ref_ldf, adtype
58
)
59
else
60
+ # TODO: Should we test linked as well?
61
DynamicPPL.TestUtils.AD.run_ad(
62
m,
63
adtype;
64
+ linked=false,
65
varinfo=varinfo,
66
expected_value_and_grad=(ref_logp, ref_grad),
67
0 commit comments