You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ma...@apache.org on 2020/11/19 19:10:55 UTC
[incubator-mxnet] branch master updated: Mark test_np_around as
flaky (#19554)
This is an automated email from the ASF dual-hosted git repository.
marcoabreu 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 c9d9c85 Mark test_np_around as flaky (#19554)
c9d9c85 is described below
commit c9d9c85d1976098735c7a6ff89b87c489d5f188d
Author: Leonard Lausen <la...@amazon.com>
AuthorDate: Thu Nov 19 12:09:30 2020 -0700
Mark test_np_around as flaky (#19554)
[2020-11-16T18:27:31.310Z] if hybridize:
[2020-11-16T18:27:31.310Z] test_around.hybridize()
[2020-11-16T18:27:31.310Z] x = rand_ndarray(shape, dtype=oneType).as_np_ndarray()
[2020-11-16T18:27:31.310Z] np_out = _np.around(x.asnumpy(), d)
[2020-11-16T18:27:31.310Z] mx_out = test_around(x)
[2020-11-16T18:27:31.310Z] assert mx_out.shape == np_out.shape
[2020-11-16T18:27:31.310Z] > assert_almost_equal(mx_out.asnumpy(), np_out, rtol=rtol, atol=atol)
[...]
[2020-11-16T18:27:31.311Z] > raise AssertionError(msg)
[2020-11-16T18:27:31.311Z] E AssertionError:
[2020-11-16T18:27:31.311Z] E Items are not equal:
[2020-11-16T18:27:31.311Z] E Error 1.002051 exceeds tolerance rtol=1.000000e-03, atol=1.000000e-05.
[2020-11-16T18:27:31.311Z] E
[2020-11-16T18:27:31.311Z] E ACTUAL: array(-0.989, dtype=float32)
[2020-11-16T18:27:31.311Z] E DESIRED: -0.988
---
tests/python/unittest/test_numpy_op.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/python/unittest/test_numpy_op.py b/tests/python/unittest/test_numpy_op.py
index e4ce7d0..e66ee31 100644
--- a/tests/python/unittest/test_numpy_op.py
+++ b/tests/python/unittest/test_numpy_op.py
@@ -7542,6 +7542,7 @@ def test_np_flipud_fliplr():
@use_np
+@pytest.mark.flaky
def test_np_around():
class TestAround(HybridBlock):
def __init__(self, decimals):