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/03/29 16:00:36 UTC

[GitHub] reminisce commented on a change in pull request #10313: Set random seed for test_random.test_shuffle

reminisce commented on a change in pull request #10313: Set random seed for test_random.test_shuffle
URL: https://github.com/apache/incubator-mxnet/pull/10313#discussion_r178103716
 
 

 ##########
 File path: tests/python/unittest/test_random.py
 ##########
 @@ -554,7 +554,7 @@ def compute_expected_prob():
     mx.test_utils.assert_almost_equal(exp_cnt_sampled.asnumpy(), exp_cnt[sampled_classes].asnumpy(), rtol=1e-1, atol=1e-2)
     mx.test_utils.assert_almost_equal(exp_cnt_true.asnumpy(), exp_cnt[true_classes].asnumpy(), rtol=1e-1, atol=1e-2)
 
-@with_seed()
+@with_seed(1)
 
 Review comment:
   Have you tried seed that makes the test fail? seed=1 seems too special.

----------------------------------------------------------------
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