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 2020/01/06 17:16:43 UTC

[GitHub] [incubator-mxnet] Alicia1529 commented on a change in pull request #17222: fix flaky test: boolean index and fix bugs

Alicia1529 commented on a change in pull request #17222: fix flaky test: boolean index and fix bugs
URL: https://github.com/apache/incubator-mxnet/pull/17222#discussion_r363392042
 
 

 ##########
 File path: tests/python/unittest/test_numpy_op.py
 ##########
 @@ -1296,10 +1296,9 @@ def hybrid_forward(self, F, a, mask, value):
 
     for hybridize in [False]:
         for config in configs:
-            print(config)
             dshape, mshape, start_axis = config
             test_data = np.random.uniform(size=dshape)
-            mx_mask = np.around(np.random.uniform(size=mshape))
+            mx_mask = np.around(np.random.uniform(size=mshape)).astype(np.bool)
 
 Review comment:
   Thanks for your suggestions. I added this change just now : )

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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