From 595b0c13fd9588606f9f77e7d3876c2f0311d4a3 Mon Sep 17 00:00:00 2001 From: Yiyan66 Date: Sat, 4 Jul 2020 15:33:15 +0000 Subject: [PATCH] change test --- tests/python/unittest/test_numpy_op.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/python/unittest/test_numpy_op.py b/tests/python/unittest/test_numpy_op.py index 0bdd3099634a..e5d90edcd9eb 100644 --- a/tests/python/unittest/test_numpy_op.py +++ b/tests/python/unittest/test_numpy_op.py @@ -3062,7 +3062,6 @@ def hybrid_forward(self, F, a, b, *args, **kwargs): @with_seed() @use_np -# @pytest.mark.skip(reason='https://github.com/apache/incubator-mxnet/issues/16848') def test_np_mixed_precision_binary_funcs(): itypes = [np.bool, np.int8, np.int32, np.int64] ftypes = [np.float16, np.float32, np.float64] @@ -3075,10 +3074,10 @@ def __init__(self, func): def hybrid_forward(self, F, a, b, *args, **kwargs): return getattr(F.np, self._func)(a, b) - # if (func in ['multiply', 'mod', 'equal', 'not_equal', 'greater', - # 'greater_equal', 'less', 'less_equal']) and \ - # (lshape == () or rshape == ()) : - # return + if (func in ['multiply', 'mod', 'equal', 'not_equal', 'greater', + 'greater_equal', 'less', 'less_equal']) and \ + (lshape == () or rshape == ()) : + return np_func = getattr(_np, func) mx_func = TestMixedBinary(func) np_test_x1 = _np.random.uniform(low, high, lshape).astype(ltype)