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

NumPy and cuNumeric behave differently in 1 case for array API #885

Closed
robinwnv opened this issue Apr 14, 2023 · 1 comment
Closed

NumPy and cuNumeric behave differently in 1 case for array API #885

robinwnv opened this issue Apr 14, 2023 · 1 comment
Assignees

Comments

@robinwnv
Copy link
Contributor

robinwnv commented Apr 14, 2023

NumPy and cuNumeric behave differently for the following cases.
Some of the cases need to be fixed while the others are expected divergences.

Case-1

res_num = num.array(object, ndmin=ndmin)

object is one of the following values:

0, [], [1, 2], [[1, 2], [3, 4.1]]

ndmin is one of the following values:

-1, 0, 1, 2, 3, 4

If dim of object is smaller than ndmin,
In Numpy, it pass
In cuNumeric, it raises TypeError: 'NoneType' object cannot be interpreted as an integer

@robinwnv robinwnv self-assigned this Apr 26, 2023
@robinwnv
Copy link
Contributor Author

#910 is merged to fix this issue #885. Close this issue.

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

No branches or pull requests

1 participant