Skip to content

Allow custom sizes, dim order and strides for tensor view.#14982

Merged
GregoryComer merged 7 commits intorelease/1.0from
cherry-pick-14944-by-pytorch_bot_bot_
Oct 14, 2025
Merged

Allow custom sizes, dim order and strides for tensor view.#14982
GregoryComer merged 7 commits intorelease/1.0from
cherry-pick-14944-by-pytorch_bot_bot_

Conversation

@pytorchbot
Copy link
Copy Markdown
Collaborator

Summary: .

Differential Revision: D84259597

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)
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented 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 SEVs

There are 2 currently active SEVs. If your PR is affected, please view them below:

⏳ No Failures, 5 Pending

As of commit 4bd73c9 with merge base e0dda90 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla 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 Oct 10, 2025
@GregoryComer
Copy link
Copy Markdown
Member

@shoumikhin Can you take a look at the build errors? Thanks.

@GregoryComer GregoryComer merged commit 11472a2 into release/1.0 Oct 14, 2025
119 of 122 checks passed
@GregoryComer GregoryComer deleted the cherry-pick-14944-by-pytorch_bot_bot_ branch October 14, 2025 00:35
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants