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 Shift bug where there was an empty dimension in Array #3488

Merged
merged 2 commits into from Aug 19, 2023

Conversation

umar456
Copy link
Member

@umar456 umar456 commented Aug 19, 2023

Fix bug in shift where there is an empty dimension in array(i.e. 10, 1, 10). This caused an error because of the new compaction of the dimensions in the JIT code generation.

Description

  • Fixes bug in JIT kernel generation when there is a singleton dimension in the Array
  • This also addresses an issue in reorder where the reorder function wasn't evaluated.

Fixes: #3475

Changes to Users

N/A

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • Functions added to unified API
  • Functions documented

The reorder funciton was copying the Array object internally and
then the other operations were performed on the copy. This causes
the eval to be performed on the copied array instead of the input
array.
@umar456 umar456 merged commit 23ee065 into arrayfire:master Aug 19, 2023
12 checks passed
@umar456 umar456 deleted the shift_fix branch August 19, 2023 20:44
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.

[BUG] Shift returns incorrect results with arrays with skipped dimensions
2 participants