Repository navigation
Copy slice-scatter inputs into channels-packed textures - #24438
JakeStevens wants to merge 2 commits into
Conversation
Summary: Originally, the example supported only mv2. This PR extends that support to all models within torchvision. to be more specific, it allows you to export any torchvision model via a script-- it does *not* imply all export successfully or will run successfully. These will be addressed in follow-on PRs. Reviewed By: SS-JIA Differential Revision: D128684681
Summary: ## Ulterior Motive Unblock Swin V2's runtime query/key/value bias update. ## Rationale **What**: Copy and repack `slice_scatter` inputs and output in the kernel's required channels-packed texture representation. **Why**: The stored bias is cloned and updated at runtime, but its planned buffers do not satisfy the operator's texture-only contract. ## Details - Repack `self` and `src` only when they are not standard channels-packed textures. - Reject over-limit tensors before constructing temporary tensors. - Dispatch into a matching temporary and copy back when the planned output differs. Authored with AI using Metamate on agentcloud. Differential Revision: D129088172
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24438
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 8fa8785 with merge base cec2e73 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@JakeStevens has exported this pull request. If you are a Meta employee, you can view the originating Diff in D129088172. |
This PR needs a
|
Summary:
Ulterior Motive
Unblock Swin V2's runtime query/key/value bias update.
Rationale
What: Copy and repack
slice_scatterinputs and output in the kernel's required channels-packed texture representation.Why: The stored bias is cloned and updated at runtime, but its planned buffers do not satisfy the operator's texture-only contract.
Details
selfandsrconly when they are not standard channels-packed textures.Authored with AI using Metamate on agentcloud.
Differential Revision: D129088172