Support np.intXX for repeats argument of cupy.repeat
@@ -2350,7 +2350,7 @@ cpdef ndarray _repeat(ndarray a, repeats, axis=None):
# Scalar and size 1 'repeat' arrays broadcast to any shape, for all
# other inputs the dimension must match exactly.
cdef bint broadcast = False
- if isinstance(repeats, int):
+ if numpy.issubdtype(repeats, numpy.integer):
if repeats < 0:
raise ValueError(
"'repeats' should not be negative: {}".format(repeats))
