Skip to content

Conversation

@pytorchbot
Copy link
Collaborator

Summary: .

Differential Revision: D63545997

#5725)

Summary:
Pull Request resolved: #5725

`shared_ptr` has a so-called aliasing constructor, that allows it to manage one object, but effectively point to another one.  Here we use it to keep the data/metadata bundled together, but make the `shared_ptr` expose the address of the `TensorImpl` instance only.

Reviewed By: dbort

Differential Revision: D63545997

fbshipit-source-id: 374d8a0ed1a1558608d59246b4c6c44cb0c13398
(cherry picked from commit c3460e5)
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 28, 2024

🔗 Helpful Links

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

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

✅ No Failures

As of commit f47569b with merge base eecf74f (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 28, 2024
@jackzhxng
Copy link
Contributor

Let's leave this for the next release unless it fixes a bug

@mcr229 mcr229 closed this Mar 26, 2025
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.

6 participants