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 f3b81d1 commit e363b5cCopy full SHA for e363b5c
test/fasteval.jl
@@ -36,7 +36,7 @@ end
36
unlinked_vi
37
end
38
nt_ranges, dict_ranges = DynamicPPL.Experimental.get_ranges_and_linked(vi)
39
- params = vi[:]
+ params = map(identity, vi[:])
40
# Iterate over all variables
41
for vn in keys(vi)
42
# Check that `getindex_internal` returns the same thing as using the ranges
@@ -95,7 +95,7 @@ end
95
varinfo = VarInfo(m)
96
linked_varinfo = DynamicPPL.link(varinfo, m)
97
f = FastLDF(m, getlogjoint_internal, linked_varinfo)
98
- x = linked_varinfo[:]
+ x = map(identity, linked_varinfo[:])
99
100
# Calculate reference logp + gradient of logp using ForwardDiff
101
ref_ad_result = run_ad(m, ref_adtype; varinfo=linked_varinfo, test=NoTest())
0 commit comments