File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ using DynamicPPL: LogDensityFunction
23
23
varinfos = DynamicPPL. TestUtils. setup_varinfos (m, rand_param_values, vns)
24
24
25
25
@testset " $(short_varinfo_name (varinfo)) " for varinfo in varinfos
26
- # TODO : This runs unlinked. Should we test linked as well?
26
+ # TODO : This runs linked. Should we test unlinked as well?
27
+ varinfo = DynamicPPL. link (varinfo, m)
27
28
f = LogDensityFunction (m, varinfo)
28
29
x = DynamicPPL. getparams (f)
29
30
# Calculate reference logp + gradient of logp using ForwardDiff
@@ -57,14 +58,15 @@ using DynamicPPL: LogDensityFunction
57
58
ref_ldf, adtype
58
59
)
59
60
else
60
- # TODO : Should we test linked as well?
61
- DynamicPPL. TestUtils. AD. run_ad (
61
+ # TODO : Should we test unlinked as well?
62
+ @test DynamicPPL. TestUtils. AD. run_ad (
62
63
m,
63
64
adtype;
64
- linked= false ,
65
+ test= true ,
66
+ benchmark= true ,
65
67
varinfo= varinfo,
66
68
expected_value_and_grad= (ref_logp, ref_grad),
67
- )
69
+ ) isa Any
68
70
end
69
71
end
70
72
end
You can’t perform that action at this time.
0 commit comments