Skip to content

Fix CatFromSliceCopyPass indexing issue. #10913

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
May 16, 2025

Conversation

abeakkas
Copy link
Contributor

Summary:
Fix indexing bug in RemoveCatFromSliceCopyPass. If the slice input becomes one of the later inputs of the cat the slicing indices should be updated accordingly.

Also simplify the pass and generalize arg/kwarg support.

Differential Revision: D74765369

@abeakkas abeakkas requested a review from tarun292 as a code owner May 15, 2025 16:52
Copy link

pytorch-bot bot commented May 15, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit 4d7d174 with merge base 56eb18b (image):

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 May 15, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74765369

@abeakkas
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

abeakkas added a commit to abeakkas/executorch that referenced this pull request May 15, 2025
Summary:

Fix indexing bug in RemoveCatFromSliceCopyPass. If the slice input becomes one of the later inputs of the cat the slicing indices should be updated accordingly.

Also simplify the pass and generalize arg/kwarg support.

Differential Revision: D74765369
@abeakkas abeakkas force-pushed the export-D74765369 branch from 9fcf1b4 to 0852980 Compare May 15, 2025 17:39
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74765369

abeakkas added a commit to abeakkas/executorch that referenced this pull request May 15, 2025
Summary:
Pull Request resolved: pytorch#10913

Fix indexing bug in RemoveCatFromSliceCopyPass. If the slice input becomes one of the later inputs of the cat the slicing indices should be updated accordingly.

Also simplify the pass and generalize arg/kwarg support.

Differential Revision: D74765369
@abeakkas abeakkas force-pushed the export-D74765369 branch from 0852980 to a12c7b7 Compare May 15, 2025 17:43
abeakkas added a commit to abeakkas/executorch that referenced this pull request May 15, 2025
Summary:

Fix indexing bug in RemoveCatFromSliceCopyPass. If the slice input becomes one of the later inputs of the cat the slicing indices should be updated accordingly.

Also simplify the pass and generalize arg/kwarg support.

Reviewed By: zonglinpeng

Differential Revision: D74765369
@abeakkas abeakkas force-pushed the export-D74765369 branch from a12c7b7 to d1a1bce Compare May 15, 2025 20:53
Summary:
Pull Request resolved: pytorch#10913

Fix indexing bug in RemoveCatFromSliceCopyPass. If the slice input becomes one of the later inputs of the cat the slicing indices should be updated accordingly.

Also simplify the pass and generalize arg/kwarg support.

Reviewed By: zonglinpeng

Differential Revision: D74765369
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D74765369

@abeakkas abeakkas force-pushed the export-D74765369 branch from d1a1bce to 4d7d174 Compare May 15, 2025 20:56
@abeakkas
Copy link
Contributor Author

@pytorchbot label "release notes: none"

@pytorch-bot pytorch-bot bot added the release notes: none Do not include this in the release notes label May 15, 2025
@facebook-github-bot facebook-github-bot merged commit 7175ca4 into pytorch:main May 16, 2025
84 of 88 checks passed
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. fb-exported release notes: none Do not include this in the release notes topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants