We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc059f commit 73c8b3cCopy full SHA for 73c8b3c
1 file changed
cupy/cuda/cub.pyx
@@ -74,8 +74,7 @@ cpdef _preprocess_array(ndarray arr, axis, bint keepdims, str order):
74
axis_permutes = out_axis + reduce_axis
75
elif order == 'F':
76
axis_permutes = reduce_axis + out_axis
77
- if axis_permutes != tuple(range(len(arr.shape))):
78
- raise ValueError('should not happen')
+ assert axis_permutes == tuple(range(len(arr.shape)))
79
80
for axis in reduce_axis:
81
contiguous_size *= arr.shape[axis]
0 commit comments