gaurav-arya / StochasticAD.jl

Research package for automatic differentiation of programs containing discrete randomness.
MIT License
198 stars 16 forks source link

Remove internal RNG #49

Open gaurav-arya opened 1 year ago

gaurav-arya commented 1 year ago

The internal global RNG is undesirable because it makes pruning non-deterministic even if the user fixes a seed for the RNGs they control.

We could fix this by splitting off a new RNG using the current global RNG when the first stochastic triple is initialized. (And also allowing for a user-provided RNG.)