Skip to content

Commit

Permalink
Merge b3b9835 into 8be4ff3
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Apr 5, 2018
2 parents 8be4ff3 + b3b9835 commit ce480a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cupy/core/core.pyx
Expand Up @@ -2467,7 +2467,7 @@ cpdef ndarray concatenate_method(tup, int axis):

cpdef ndarray _concatenate(list arrays, Py_ssize_t axis, tuple shape, dtype):
cdef ndarray a, ret
cdef int i
cdef Py_ssize_t i
cdef bint all_same_type, same_shape_and_contiguous
cdef Py_ssize_t axis_size
# If arrays are large, Issuing each copy method is efficient.
Expand Down
2 changes: 1 addition & 1 deletion cupy/core/internal.pyx
Expand Up @@ -143,7 +143,7 @@ cpdef vector.vector[Py_ssize_t] infer_unknown_dimension(


@cython.profile(False)
cpdef inline int _extract_slice_element(x) except *:
cpdef inline Py_ssize_t _extract_slice_element(x) except *:
try:
return x.__index__()
except AttributeError:
Expand Down
7 changes: 7 additions & 0 deletions tests/cupy_tests/manipulation_tests/test_join.py
Expand Up @@ -108,6 +108,13 @@ def test_concatenate_many_multi_dptye(self, xp):
b = testing.shaped_arange((2, 1), xp, 'f')
return xp.concatenate((a, b) * 1024, axis=1)

@testing.numpy_cupy_array_equal()
@testing.slow
def test_concatenate_32bit_boundary(self, xp):
a = xp.zeros((2 ** 30,), dtype=xp.int8)
b = xp.zeros((2 ** 30,), dtype=xp.int8)
return xp.concatenate([a, b])

def test_concatenate_wrong_ndim(self):
a = cupy.empty((2, 3))
b = cupy.empty((2,))
Expand Down

0 comments on commit ce480a5

Please sign in to comment.