You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/01/13 22:53:50 UTC

[GitHub] marcoabreu commented on a change in pull request #9409: Random seed setting

marcoabreu commented on a change in pull request #9409: Random seed setting
URL: https://github.com/apache/incubator-mxnet/pull/9409#discussion_r161383330
 
 

 ##########
 File path: tests/python/unittest/test_random.py
 ##########
 @@ -197,6 +197,75 @@ def test_random():
     check_with_device(mx.context.current_context(), 'float64')
 
 
+# Set seed variously based on `start_seed` and `num_init_seeds`, then set seed finally to `final_seed`
+def set_seed_variously(init_seed, num_init_seeds, final_seed):
+    end_seed = init_seed + num_init_seeds
+    for seed in range(init_seed, end_seed):
+        mx.random.seed(seed)
 
 Review comment:
   What's the point of setting the seed multiple times? Do you expect a different behaviour depending on whether you set it once or multiple times?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services