Skip to content

Commit 86d8a73

Browse files
committed
Concretise parameter vector in tests
1 parent c3bdcd0 commit 86d8a73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/fasteval.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ end
3636
unlinked_vi
3737
end
3838
nt_ranges, dict_ranges = DynamicPPL.Experimental.get_ranges_and_linked(vi)
39-
params = vi[:]
39+
params = map(identity, vi[:])
4040
# Iterate over all variables
4141
for vn in keys(vi)
4242
# Check that `getindex_internal` returns the same thing as using the ranges
@@ -95,7 +95,7 @@ end
9595
varinfo = VarInfo(m)
9696
linked_varinfo = DynamicPPL.link(varinfo, m)
9797
f = FastLDF(m, getlogjoint_internal, linked_varinfo)
98-
x = linked_varinfo[:]
98+
x = map(identity, linked_varinfo[:])
9999

100100
# Calculate reference logp + gradient of logp using ForwardDiff
101101
ref_ad_result = run_ad(m, ref_adtype; varinfo=linked_varinfo, test=NoTest())

0 commit comments

Comments
 (0)