From 1712bdd2087de3d6ccc03260648b08e7dc846f0c Mon Sep 17 00:00:00 2001 From: Yiyan66 Date: Thu, 23 Jul 2020 04:29:18 +0000 Subject: [PATCH] doc --- tests/python/unittest/test_numpy_op.py | 3 +++ 1 file changed, 3 insertions(+) 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)