Skip to content

[ET-VK] Add pass to remove copy ops #7325

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
Dec 13, 2024

Conversation

SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Dec 13, 2024

Stack from ghstack (oldest at bottom):

Context

This diff prepares Vulkan to handle dim order operators. For more context, see #4873

Since Vulkan has its own internal representation of memory layout, these ops are handled by simply remove explicit memory layout transition operators from the graph and let the memory metadata tagging pass insert the necessary memory layout transitions.

A new pass is added to remove such operators, largely based on QNN's RemoveRedundancy pass.

Differential Revision: D67180898

## Context

This diff prepares Vulkan to handle dim order operators. For more context, see #4873

Since Vulkan has its own internal representation of memory layout, these ops are handled by simply remove explicit memory layout transition operators from the graph and let the memory metadata tagging pass insert the necessary memory layout transitions.

A new pass is added to remove such operators, largely based on QNN's `RemoveRedundancy` pass.

Differential Revision: [D67180898](https://our.internmc.facebook.com/intern/diff/D67180898/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Dec 13, 2024

🔗 Helpful Links

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

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

❌ 2 New Failures

As of commit 69d6d71 with merge base 8460d42 (image):

NEW FAILURES - The following jobs have 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 Dec 13, 2024
SS-JIA added a commit that referenced this pull request Dec 13, 2024
## Context

This diff prepares Vulkan to handle dim order operators. For more context, see #4873

Since Vulkan has its own internal representation of memory layout, these ops are handled by simply remove explicit memory layout transition operators from the graph and let the memory metadata tagging pass insert the necessary memory layout transitions.

A new pass is added to remove such operators, largely based on QNN's `RemoveRedundancy` pass.

Differential Revision: [D67180898](https://our.internmc.facebook.com/intern/diff/D67180898/)

ghstack-source-id: 258092214
Pull Request resolved: #7325
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot facebook-github-bot merged commit 4a653db into gh/SS-JIA/156/base Dec 13, 2024
42 of 48 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/156/head branch December 13, 2024 22:40
SS-JIA added a commit that referenced this pull request Dec 16, 2024
## Context

This diff prepares Vulkan to handle dim order operators. For more context, see #4873

Since Vulkan has its own internal representation of memory layout, these ops are handled by simply remove explicit memory layout transition operators from the graph and let the memory metadata tagging pass insert the necessary memory layout transitions.

A new pass is added to remove such operators, largely based on QNN's `RemoveRedundancy` pass.

Differential Revision: [D67180898](https://our.internmc.facebook.com/intern/diff/D67180898/)

ghstack-source-id: 258092214
Pull Request resolved: #7325

Co-authored-by: Stephen Jia <[email protected]>
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.

3 participants