Skip to content

add pass to remove cat from slice pass #8857

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

Conversation

zonglinpeng
Copy link
Contributor

Summary:
only keep the cat before slice iff the slice range overlaps with both tensors in cat.
TODO: trace to 1+ level for more cat in a china
TODO: support >2 tensors in a cat

Differential Revision: D70425971

@zonglinpeng zonglinpeng requested a review from tarun292 as a code owner March 1, 2025 00:20
Copy link

pytorch-bot bot commented Mar 1, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 0a04324 with merge base 6099020 (image):

NEW FAILURE - The following job has failed:

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

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

@facebook-github-bot
Copy link
Contributor

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

@zonglinpeng zonglinpeng force-pushed the export-D70425971 branch 2 times, most recently from 1420d2e to 2a06f66 Compare March 1, 2025 01:07
zonglinpeng added a commit to zonglinpeng/executorch that referenced this pull request Mar 1, 2025
Summary:

only keep the cat before slice iff the slice range overlaps with *both* tensors in cat.
TODO: trace to 1+ level for more cat in a china
TODO: support >2 tensors in a cat

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

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

zonglinpeng added a commit to zonglinpeng/executorch that referenced this pull request Mar 7, 2025
Summary:

only keep the cat before slice iff the slice range overlaps with *both* tensors in cat.
TODO: trace to 1+ level for more cat in a china
TODO: support >2 tensors in a cat

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

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

zonglinpeng added a commit to zonglinpeng/executorch that referenced this pull request Mar 7, 2025
Summary:
Pull Request resolved: pytorch#8857

only keep the cat before slice iff the slice range overlaps with *both* tensors in cat.
TODO: trace to 1+ level for more cat in a china
TODO: support >2 tensors in a cat

Differential Revision: D70425971
Summary:

only keep the cat before slice iff the slice range overlaps with *both* tensors in cat.
TODO: trace to 1+ level for more cat in a china
TODO: support >2 tensors in a cat

Reviewed By: bingcy

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

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

@facebook-github-bot facebook-github-bot merged commit e6d44fa into pytorch:main Mar 7, 2025
49 of 52 checks passed
@cccclai cccclai mentioned this pull request Mar 10, 2025
@swolchok
Copy link
Contributor

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 topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants