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

fixing advanced indexing operation for empty arrays #504

Merged
merged 16 commits into from
Aug 22, 2022

Conversation

ipdemes
Copy link
Contributor

@ipdemes ipdemes commented Aug 4, 2022

This PR fixes test cases when input/index and/or values are empty arrays
It depends on nv-legate/legate#319 to me merged first

@ipdemes
Copy link
Contributor Author

ipdemes commented Aug 11, 2022

This PR also fixes reshape for empty arrays with ndim >1 (arrays with shapes (1,0), (1,0,0) e.t.c)

cunumeric/deferred.py Outdated Show resolved Hide resolved
cunumeric/deferred.py Outdated Show resolved Hide resolved
cunumeric/deferred.py Outdated Show resolved Hide resolved
cunumeric/deferred.py Outdated Show resolved Hide resolved
cunumeric/deferred.py Outdated Show resolved Hide resolved
cunumeric/array.py Outdated Show resolved Hide resolved
cunumeric/deferred.py Outdated Show resolved Hide resolved
@ipdemes ipdemes requested a review from manopapad August 19, 2022 19:46
Copy link
Contributor

@manopapad manopapad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job fixing this very stupid corner case

@ipdemes
Copy link
Contributor Author

ipdemes commented Aug 19, 2022

Thank you, Manolis! Will merge it after CI passes

@ipdemes ipdemes merged commit ede9793 into nv-legate:branch-22.10 Aug 22, 2022
jjwilke pushed a commit to jjwilke/cunumeric that referenced this pull request Sep 2, 2022
fixing advanced indexing operation for empty arrays
@ipdemes ipdemes deleted the fix_advanced_indexing branch January 12, 2023 05:20
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.

3 participants