Skip to content

Commit f17300a

Browse files
committed
Fix tests
1 parent 6d163fd commit f17300a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/ad.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ using DynamicPPL: LogDensityFunction
2323
varinfos = DynamicPPL.TestUtils.setup_varinfos(m, rand_param_values, vns)
2424

2525
@testset "$(short_varinfo_name(varinfo))" for varinfo in varinfos
26+
# TODO: This runs unlinked. Should we test linked as well?
2627
f = LogDensityFunction(m, varinfo)
2728
x = DynamicPPL.getparams(f)
2829
# Calculate reference logp + gradient of logp using ForwardDiff
@@ -56,9 +57,11 @@ using DynamicPPL: LogDensityFunction
5657
ref_ldf, adtype
5758
)
5859
else
60+
# TODO: Should we test linked as well?
5961
DynamicPPL.TestUtils.AD.run_ad(
6062
m,
6163
adtype;
64+
linked=false,
6265
varinfo=varinfo,
6366
expected_value_and_grad=(ref_logp, ref_grad),
6467
)

0 commit comments

Comments
 (0)