Allow custom sizes, dim order and strides for tensor view.#14982
Merged
GregoryComer merged 7 commits intorelease/1.0from Oct 14, 2025
Merged
Allow custom sizes, dim order and strides for tensor view.#14982GregoryComer merged 7 commits intorelease/1.0from
GregoryComer merged 7 commits intorelease/1.0from
Conversation
Summary: The `make_tensor_ptr(TensrPtr)` overload creates a view on an existing `Tensor`. Here we provide a way for users to customize the shape, etc. so that they can easily do squeeze/unsqueeze and other convenient operations. Differential Revision: D84259597 (cherry picked from commit 4bdd3df)
This was referenced Oct 10, 2025
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14982
Note: Links to docs will display an error until the docs builds have been completed. ❗ 2 Active SEVsThere are 2 currently active SEVs. If your PR is affected, please view them below:
⏳ No Failures, 5 PendingAs of commit 4bd73c9 with merge base e0dda90 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Member
|
@shoumikhin Can you take a look at the build errors? Thanks. |
GregoryComer
approved these changes
Oct 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary: .
Differential Revision: D84259597