Skip to content
New issue

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

dpnp.sum() for empty array crashes. #1352

Closed
npolina4 opened this issue Mar 27, 2023 · 0 comments · Fixed by #1369
Closed

dpnp.sum() for empty array crashes. #1352

npolina4 opened this issue Mar 27, 2023 · 0 comments · Fixed by #1369
Assignees
Labels
bug Something isn't working

Comments

@npolina4
Copy link
Collaborator

import dpnp
x = dpnp.ones(0)
>>> x.sum()
terminate called after throwing an instance of 'oneapi::mkl::invalid_argument'
  what():  oneapi::mkl::stats::dataset: invalid argument: number of observations <= 0
Aborted (core dumped)
@oleksandr-pavlyk oleksandr-pavlyk added the bug Something isn't working label Apr 4, 2023
@npolina4 npolina4 assigned npolina4 and unassigned vtavana Apr 5, 2023
npolina4 added a commit that referenced this issue Apr 6, 2023
Fix gh-1352 dpnp.sum() for empty array crashes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants