Skip to content

Fix getitem - #871

Merged
oleksandr-pavlyk merged 5 commits into
masterfrom
fix-getitem
Jul 28, 2022
Merged

oleksandr-pavlyk merged 5 commits into
masterfrom
fix-getitem

Conversation

@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

Closes gh-870

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?

@npolina4 Please try extending the test for concat and confirm that the issue is fixed

Offset should not be incremented if the array is found empty.

```
import dpctl.tensor as dpt
X = dpt.empty((0,4), dtype='u1')
X[:, 1]  # no longer raises ValueError
X[:, 1:3] # no longer raises ValueError
```
@github-actions

Copy link
Copy Markdown

@coveralls

coveralls commented Jul 28, 2022 •

Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage increased (+0.01%) to 81.733% when pulling cea9454 on fix-getitem into c09ac88 on master.

@oleksandr-pavlyk
oleksandr-pavlyk merged commit 880d71e into master Jul 28, 2022
@oleksandr-pavlyk
oleksandr-pavlyk deleted the fix-getitem branch July 28, 2022 21:12
@github-actions

Copy link
Copy Markdown

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ValueError when trying to access an array with zero value in one of shape values

3 participants