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 dd80ad6 commit b7ceac2Copy full SHA for b7ceac2
src/core/VarReplay.jl
@@ -301,7 +301,9 @@ end
301
# vi.logp = vi.logp[end:end]
302
# end
303
304
-# Get all indices of variables belonging to SampleFromPrior
+# Get all indices of variables belonging to SampleFromPrior:
305
+# if the gid/selector of a var is an empty Set, then that var is assumed to be assigned to
306
+# the SampleFromPrior sampler
307
getidcs(vi::VarInfo, ::SampleFromPrior) = filter(i -> isempty(vi.gids[i]) , 1:length(vi.gids))
308
function getidcs(vi::VarInfo, spl::Sampler)
309
# NOTE: 0b00 is the sanity flag for
0 commit comments