diff --git a/tests/python/unittest/test_numpy_op.py b/tests/python/unittest/test_numpy_op.py index 81449f358a70..a4af7ee4351f 100644 --- a/tests/python/unittest/test_numpy_op.py +++ b/tests/python/unittest/test_numpy_op.py @@ -3086,6 +3086,9 @@ def hybrid_forward(self, F, a, b, *args, **kwargs): if (func in ['multiply', 'mod', 'equal', 'not_equal', 'greater', 'greater_equal', 'less', 'less_equal']) and \ (lshape == () or rshape == ()) : + # the behaviors of infer type in dealing with the input shape of '()' are different between np and onp + # logcial ops: when two numbers are only different in precision, NumPy also has a weird behavior + # thus, skip the tests return np_func = getattr(_np, func) mx_func = TestMixedBinary(func)