When and how one can set a random seed for Chainer
See original GitHub issueI cannot find any guarantee on how to set a random seed to make Chainer deterministic. I want Chainer to clarify when and how it is deterministic.
numpy.random.seed
and cupy.random.seed
may work, but there seems no guarantee that Chainer has no other random sources, and I can find some exceptions: cudnn, atomicAdd (https://groups.google.com/forum/#!topic/chainer-jp/JN9H9aF4TA8), https://github.com/chainer/chainer/blob/master/chainer/datasets/sub_dataset.py, https://github.com/chainer/chainer/blob/master/chainer/functions/connection/n_step_rnn.py.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Environment variables — Chainer 3.5.0 documentation
Here are the environment variables Chainer uses. Default seed value of random number generators for CUDA. If it is not set, the seed...
Read more >Randomness FAQs - Gnosis Chain
How do I generate multiple random numbers from a single block? It is possible to create an on-chain PRNG where the currentSeed value...
Read more >[R] Random seed problem in MCMC coupling of chains
This is really neat and simple. I am just wondering if this is OK from "RNG point of view". Can someone comment on...
Read more >How to generate random numbers on-chain?
Players commit a hash and after the reveal, all the secrets could be smashed together to generate the seed for your randomness. Obviously,...
Read more >Random Numbers: Using Chainlink VRF
What is the payment process for generating a random number? How can I use Chainlink VRF? Create and fund a subscription; Importing VRFConsumerBaseV2...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We discussed offline:
@chainer.non_deterministic
) to annotate known non-deterministic functions (e.g., usingatomicAdd
)chainer.config.check_deterministic
)After discussion, we’ve decided that the PRs done covers the issue of flagging code which is non-deterministic, and cannot be given a seed. Closing this issue.