diff --git a/tests/python/unittest/test_numpy_op.py b/tests/python/unittest/test_numpy_op.py index ed0bfe4f1038..0826322c3e26 100644 --- a/tests/python/unittest/test_numpy_op.py +++ b/tests/python/unittest/test_numpy_op.py @@ -429,9 +429,6 @@ def hybrid_forward(self, F, a, b): return F.np.matmul(a, b) def matmul_backward(a, b): - if (a.ndim < 1) or (b.ndim < 1): - raise ValueError('An input is zero-dim') - def ShapeInfer(mat_a, mat_b): if mat_a.ndim == 1: mat_a = mat_a.reshape((1, mat_a.size))