You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by "Deokjae Lee (JIRA)" <ji...@apache.org> on 2018/04/02 15:43:00 UTC

[jira] [Created] (MXNET-262) Implement mx.random.seed_context to seed random number generators of a specific device context

Deokjae Lee created MXNET-262:
---------------------------------

             Summary: Implement mx.random.seed_context to seed random number generators of a specific device context
                 Key: MXNET-262
                 URL: https://issues.apache.org/jira/browse/MXNET-262
             Project: Apache MXNet
          Issue Type: New Feature
            Reporter: Deokjae Lee


This PR introduces a function `mx.random.seed_context` to seed random number generators of a specific device context. `mx.random.seed_context(seed, ctx)` seeds the parallel and non-parallel generators of `ctx` where `ctx` is optional and the default is the current context. The random number sequence generated on the device is completely determined by the seed, differently from existing `mx.random.seed` which implicitly uses the device id of each context together with the given seed. Using device id is reasonable to seed all generators at once with a given seed, but to reproduce the same random number sequence we need to set the running context besides seeding with the same number. Sometimes setting a context would be inconvenient or the running context could be not deterministic. `mx.random.seed_context` would be helpful in such cases.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org