You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ns...@apache.org on 2019/01/14 07:06:50 UTC

[incubator-mxnet] branch master updated: adding tolerance to flaky test (#13850)

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

nswamy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new f554835  adding tolerance to flaky test (#13850)
f554835 is described below

commit f554835f33633bfdc93a240a8415dc061d127583
Author: Roshani Nagmote <ro...@gmail.com>
AuthorDate: Sun Jan 13 23:06:30 2019 -0800

    adding tolerance to flaky test (#13850)
    
    * adding tolerance
    
    * retrigger ci
    
    * retrigger ci
---
 tests/python-pytest/onnx/test_node.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/python-pytest/onnx/test_node.py b/tests/python-pytest/onnx/test_node.py
index 186666e..25fe9c9 100644
--- a/tests/python-pytest/onnx/test_node.py
+++ b/tests/python-pytest/onnx/test_node.py
@@ -204,7 +204,7 @@ class TestNode(unittest.TestCase):
                 onnx_model = get_onnx_graph(test_name, names, input_tensors, onnx_name, output_shape, attrs)
                 bkd_rep = backend.prepare(onnx_model, operation='import')
                 mxnet_out = bkd_rep.run(inputs)
-                npt.assert_almost_equal(np_out, mxnet_out)
+                npt.assert_almost_equal(np_out, mxnet_out, decimal=4)
 
 # test_case = ("test_case_name", mxnet op, "ONNX_op_name", [input_list], attribute map, MXNet_specific=True/False,
 # fix_attributes = {'modify': {mxnet_attr_name: onnx_attr_name},