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

haoj 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 75feade  [Flaky Test] Bump up bilinear_resize  (#15129)
75feade is described below

commit 75feadef0c82d8c5332282c6c016058933a8aacc
Author: Jake Lee <[email protected]>
AuthorDate: Mon Jun 3 23:03:56 2019 -0700

    [Flaky Test] Bump up bilinear_resize  (#15129)
    
    * bump up the tolerance level again
    
    * bump up atol
---
 tests/python/unittest/test_operator.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/python/unittest/test_operator.py 
b/tests/python/unittest/test_operator.py
index b702e6b..ab33d26 100644
--- a/tests/python/unittest/test_operator.py
+++ b/tests/python/unittest/test_operator.py
@@ -7481,14 +7481,14 @@ def test_bilinear_resize_op():
             resize_sym = mx.sym.contrib.BilinearResize2D(data_sym, None, 
scale_height=scale_height, scale_width=scale_width, mode=mode)
             check_symbolic_forward(resize_sym, [data_np], [expected], 
rtol=1e-3, atol=1e-5)
             check_symbolic_backward(resize_sym, [data_np], [out_grads], 
expected_backward, rtol=1e-3, atol=1e-5)
-            check_numeric_gradient(resize_sym, [data_np], rtol=1e-2, atol=1e-5)
+            check_numeric_gradient(resize_sym, [data_np], rtol=1e-2, atol=1e-4)
         else:
             data_sym_like = mx.sym.var('data_like')
             resize_sym = mx.sym.contrib.BilinearResize2D(data_sym, 
data_sym_like, mode=mode)
             date_np_like = x_1.asnumpy()
             check_symbolic_forward(resize_sym, [data_np, date_np_like], 
[expected], rtol=1e-3, atol=1e-5)
             check_symbolic_backward(resize_sym, [data_np, date_np_like], 
[out_grads], expected_backward, rtol=1e-3, atol=1e-5)
-            check_numeric_gradient(resize_sym, [data_np, date_np_like], 
rtol=1e-2, atol=1e-5)
+            check_numeric_gradient(resize_sym, [data_np, date_np_like], 
rtol=1e-2, atol=1e-4)
 
     shape = (2, 2, 10, 10)
     check_bilinear_resize_op(shape, 5, 5)

Reply via email to