Support RandomState
Variable
types in Scan
#738
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
important
random variables
Involves random variables and/or sampling
refactor
This issue involves refactoring
request discussion
Scan
Involves the `Scan` `Op`
Currently, it's not possible to manually manage the RNG state evolution of
RandomVariable
s inScan
, and it's due to limitedVariable
type support.Fixing this would take us a large step toward removing the need to use shared variables and
updates
when making combined use ofScan
s andRandomVariable
s.For example,
Since it won't be easy to return a collection of all intermediate RNG state variables, we could instead return just the last one (if any). These are the kinds of things that need to be determined in order to implement this.
It's also possible that we could add special handling that reduces the boilerplate. For example, we could make it possible to omit the explicit RNG return statements, so that the following is sufficient to produce distinct samples on each iteration:
The text was updated successfully, but these errors were encountered: