From 7df0e89775dd24849c5bda3266b4cb92cd3eace2 Mon Sep 17 00:00:00 2001 From: JiangZhaoh Date: Tue, 21 Jan 2020 05:58:23 +0000 Subject: [PATCH] resolve comment --- tests/python/unittest/test_numpy_op.py | 3 --- 1 file changed, 3 deletions(-) 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))