In-place the RandomVariable
s within a Scan
#543
Labels
enhancement
New feature or request
graph rewriting
help wanted
Extra attention is needed
random variables
Involves random variables and/or sampling
Scan
Involves the `Scan` `Op`
RandomVariable
Op
s inside ofScan
s don't appear to be in-placed:The
False
s in thenormal_rv
string outputs are the booleaninplace
values, and they're indicating that therandom_make_inplace
optimization hasn't been applied to thoseRandomVariable
s.When
inplace
isFalse
, the RNG state is intentionally copied (see here), which is rather wasteful when it's not required/desired and confusing because it causes sampled values to repeat within the loop body.The text was updated successfully, but these errors were encountered: