Skip to content

Unbreak BroadcastIndexesRange::operator+= when there is no broadcasting #9374

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

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

swolchok
Copy link
Contributor

operator+= had a loop over 0 elements in this case, resulting in the indices array being full of zeros. Added a += test to our test case that covers this.

[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

swolchok commented Mar 18, 2025

Copy link

pytorch-bot bot commented Mar 18, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9374

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 4 Pending

As of commit a865349 with merge base 89a0bdf (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 18, 2025
@swolchok swolchok requested a review from kimishpatel March 18, 2025 20:49
@swolchok
Copy link
Contributor Author

This fixes a bug introduced by #9298

@swolchok swolchok merged commit 2e1dadf into main Mar 18, 2025
80 of 82 checks passed
@swolchok swolchok deleted the gh/swolchok/378/head branch March 18, 2025 21:39
oscarandersson8218 pushed a commit to oscarandersson8218/executorch that referenced this pull request Mar 21, 2025
…ng (pytorch#9374)

operator+= had a loop over 0 elements in this case, resulting in the
indices array being full of zeros. Added a += test to our test case that
covers this.
DannyYuyang-quic pushed a commit to CodeLinaro/executorch that referenced this pull request Apr 2, 2025
…ng (pytorch#9374)

operator+= had a loop over 0 elements in this case, resulting in the
indices array being full of zeros. Added a += test to our test case that
covers this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants