Skip to content

[ET-VK] Introduce virtual_transpose() to vTensor for no copy transposition #5353

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

Closed
wants to merge 2 commits into from

Conversation

SS-JIA
Copy link
Contributor

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

Stack from ghstack (oldest at bottom):

Context

With axis_map integrated into matrix multiplication, we can now test no-copy transposes for texture backed tensors.

Transposing a tensor can be done without modifying the storage by swapping elements in the tensor's axis_map, and also updating the layout of the tensor if the packed dimension was one of the dims that were transposed.

Differential Revision: D62652009

…sposition

## Context

With `axis_map` integrated into matrix multiplication, we can now test no-copy transposes for texture backed tensors.

Transposing a tensor can be done without modifying the storage by swapping elements in the tensor's `axis_map`, and also updating the layout of the tensor if the packed dimension was one of the dims that were transposed.

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

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Sep 13, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit b803bb7 with merge base ef31608 (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 Sep 13, 2024
@facebook-github-bot
Copy link
Contributor

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

SS-JIA added a commit that referenced this pull request Sep 13, 2024
…sposition

## Context

With `axis_map` integrated into matrix multiplication, we can now test no-copy transposes for texture backed tensors.

Transposing a tensor can be done without modifying the storage by swapping elements in the tensor's `axis_map`, and also updating the layout of the tensor if the packed dimension was one of the dims that were transposed.

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

ghstack-source-id: 242452080
Pull Request resolved: #5353
…o copy transposition"

## Context

With `axis_map` integrated into matrix multiplication, we can now test no-copy transposes for texture backed tensors.

Transposing a tensor can be done without modifying the storage by swapping elements in the tensor's `axis_map`, and also updating the layout of the tensor if the packed dimension was one of the dims that were transposed.

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

[ghstack-poisoned]
SS-JIA added a commit that referenced this pull request Sep 16, 2024
…sposition

Pull Request resolved: #5353

## Context

With `axis_map` integrated into matrix multiplication, we can now test no-copy transposes for texture backed tensors.

Transposing a tensor can be done without modifying the storage by swapping elements in the tensor's `axis_map`, and also updating the layout of the tensor if the packed dimension was one of the dims that were transposed.
ghstack-source-id: 242802318
@exported-using-ghexport

Differential Revision: [D62652009](https://our.internmc.facebook.com/intern/diff/D62652009/)
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 26375cc.

lucylq pushed a commit that referenced this pull request Sep 17, 2024
#5353)

Summary:
Pull Request resolved: #5353

## Context

With `axis_map` integrated into matrix multiplication, we can now test no-copy transposes for texture backed tensors.

Transposing a tensor can be done without modifying the storage by swapping elements in the tensor's `axis_map`, and also updating the layout of the tensor if the packed dimension was one of the dims that were transposed.
ghstack-source-id: 242802318
exported-using-ghexport

Reviewed By: jorgep31415

Differential Revision: D62652009

fbshipit-source-id: ae1c81a61a92e69aaa689418d7e62a81d8e09a12
@SS-JIA SS-JIA deleted the gh/SS-JIA/76/head branch January 24, 2025 19:43
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 Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants