From cb732969eb649b33bd2941dc5a10493a0b9c9756 Mon Sep 17 00:00:00 2001 From: Yiyan66 Date: Sat, 4 Jul 2020 15:10:19 +0000 Subject: [PATCH] temp --- tests/python/unittest/test_numpy_op.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/python/unittest/test_numpy_op.py b/tests/python/unittest/test_numpy_op.py index 5bf691575583..0bdd3099634a 100644 --- a/tests/python/unittest/test_numpy_op.py +++ b/tests/python/unittest/test_numpy_op.py @@ -3062,7 +3062,7 @@ 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') +# @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,6 +3075,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 np_func = getattr(_np, func) mx_func = TestMixedBinary(func) np_test_x1 = _np.random.uniform(low, high, lshape).astype(ltype)