We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CuPy raises ValueError while NumPy raises IndexError:
ValueError
IndexError
>>> import cupy as cp >>> a = cp.random.random((3, 3,3)) >>> a[..., ..., 1] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "cupy/_core/core.pyx", line 1380, in cupy._core.core.ndarray.__getitem__ return _indexing._ndarray_getitem(self, slices) File "cupy/_core/_routines_indexing.pyx", line 36, in cupy._core._routines_indexing._ndarray_getitem slice_list, advanced, mask_exists = _prepare_slice_list( File "cupy/_core/_routines_indexing.pyx", line 249, in cupy._core._routines_indexing._prepare_slice_list slice_list, n_newaxes = internal.complete_slice_list(slice_list, ndim) File "cupy/_core/internal.pyx", line 251, in cupy._core.internal.complete_slice_list raise ValueError('Only one Ellipsis is allowed in index') ValueError: Only one Ellipsis is allowed in index >>> >>> import numpy as np >>> a = np.random.random((3, 3, 3)) >>> a[..., ..., 1] Traceback (most recent call last): File "<stdin>", line 1, in <module> IndexError: an index can only have a single ellipsis ('...')
The text was updated successfully, but these errors were encountered:
Note: this relates to the test_indexing.py failure seen in #5698 (comment).
test_indexing.py
Sorry, something went wrong.
toslunar
Successfully merging a pull request may close this issue.
CuPy raises
ValueError
while NumPy raisesIndexError
:The text was updated successfully, but these errors were encountered: