Add 0-size testcases
@@ -11,16 +11,29 @@ from cupy import testing
*testing.product({
'shape_pair': [
((3, 2), (2, 4)),
+ ((3, 0), (0, 4)),
+ ((0, 2), (2, 4)),
+ ((3, 2), (2, 0)),
((2,), (2, 4)),
+ ((0,), (0, 4)),
((3, 2), (2,)),
+ ((3, 0), (0,)),
((2,), (2,)),
+ ((0,), (0,)),
((5, 3, 2), (5, 2, 4)),
+ ((0, 3, 2), (0, 2, 4)),
((5, 3, 2), (2, 4)),
+ ((0, 3, 2), (2, 4)),
((3, 2), (5, 2, 4)),
+ ((3, 2), (0, 2, 4)),
((5, 3, 2), (1, 2, 4)),
+ ((0, 3, 2), (1, 2, 4)),
((1, 3, 2), (5, 2, 4)),
+ ((1, 3, 2), (0, 2, 4)),
((5, 3, 2), (2,)),
+ ((5, 3, 0), (0,)),
((2,), (5, 2, 4)),
+ ((0,), (5, 0, 4)),
],
}))
@testing.gpu
