Skip to content

Commit 93e9bd4

Browse files
committed
Revert "Change test to use linked"
This reverts commit a90e6f5.
1 parent 3cafb89 commit 93e9bd4

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/ad.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +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 linked. Should we test unlinked as well?
27-
varinfo = DynamicPPL.link(varinfo, m)
26+
# TODO: This runs unlinked. Should we test linked as well?
2827
f = LogDensityFunction(m, varinfo)
2928
x = DynamicPPL.getparams(f)
3029
# Calculate reference logp + gradient of logp using ForwardDiff
@@ -58,15 +57,14 @@ using DynamicPPL: LogDensityFunction
5857
ref_ldf, adtype
5958
)
6059
else
61-
# TODO: Should we test unlinked as well?
62-
@test DynamicPPL.TestUtils.AD.run_ad(
60+
# TODO: Should we test linked as well?
61+
DynamicPPL.TestUtils.AD.run_ad(
6362
m,
6463
adtype;
65-
test=true,
66-
benchmark=true,
64+
linked=false,
6765
varinfo=varinfo,
6866
expected_value_and_grad=(ref_logp, ref_grad),
69-
) isa Any
67+
)
7068
end
7169
end
7270
end

0 commit comments

Comments
 (0)