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

Fix the bug in np.append test on empty input array and non-empty scalars #365

Merged
merged 3 commits into from
May 18, 2022

Conversation

sbak5
Copy link
Contributor

@sbak5 sbak5 commented May 17, 2022

np.append failed when the input array is empty and values is not empty.
This is because we excluded empty inputs in _concatenate in _collect_outshape_slices.
So, we don't create slices for empty arrays while we do zipping of input arrays and slices, which results in mismatch of input arrays and slices.

Added this case in np.block test which could fail for the same reason.

@sbak5 sbak5 mentioned this pull request May 18, 2022
@sbak5 sbak5 merged commit 1f35413 into nv-legate:branch-22.05 May 18, 2022
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.

2 participants