This is an automated email from the ASF dual-hosted git repository.

haoj pushed a commit to branch v1.6.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/v1.6.x by this push:
     new 530bd27  fix flakiness of test_np_mixed_precision_binary_funcs (#16873)
530bd27 is described below

commit 530bd27ed2c4c8e3f6a44b332569c3f73dfcb332
Author: Hao Jin <hjjn.a...@gmail.com>
AuthorDate: Thu Nov 21 01:00:52 2019 -0800

    fix flakiness of test_np_mixed_precision_binary_funcs (#16873)
---
 tests/python/unittest/test_numpy_op.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/python/unittest/test_numpy_op.py 
b/tests/python/unittest/test_numpy_op.py
index 9a36e06..b586d3c 100644
--- a/tests/python/unittest/test_numpy_op.py
+++ b/tests/python/unittest/test_numpy_op.py
@@ -1699,7 +1699,7 @@ def test_np_mixed_precision_binary_funcs():
         mx_test_x1 = mx.numpy.array(np_test_x1, dtype=ltype)
         mx_test_x2 = mx.numpy.array(np_test_x2, dtype=rtype)
         rtol = 1e-2 if ltype is np.float16 or rtype is np.float16 else 1e-3
-        atol = 1e-4 if ltype is np.float16 or rtype is np.float16 else 1e-5
+        atol = 1e-3 if ltype is np.float16 or rtype is np.float16 else 1e-5
         for hybridize in [True, False]:
             if hybridize:
                 mx_func.hybridize()

Reply via email to