Skip to content

Commit b7ceac2

Browse files
author
KDr2
committed
[skip ci] comment update
1 parent dd80ad6 commit b7ceac2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/VarReplay.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ end
301301
# vi.logp = vi.logp[end:end]
302302
# end
303303

304-
# Get all indices of variables belonging to SampleFromPrior
304+
# 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
305307
getidcs(vi::VarInfo, ::SampleFromPrior) = filter(i -> isempty(vi.gids[i]) , 1:length(vi.gids))
306308
function getidcs(vi::VarInfo, spl::Sampler)
307309
# NOTE: 0b00 is the sanity flag for

0 commit comments

Comments
 (0)