Skip to content

[AOTI] Add data_ptr to RAIIAtenTensorHandle#139895

Closed
desertfire wants to merge 3 commits intogh/desertfire/502/basefrom
gh/desertfire/502/head
Closed

[AOTI] Add data_ptr to RAIIAtenTensorHandle#139895
desertfire wants to merge 3 commits intogh/desertfire/502/basefrom
gh/desertfire/502/head

Conversation

@desertfire
Copy link
Contributor

@desertfire desertfire commented Nov 6, 2024

Stack from ghstack (oldest at bottom):

Summary: To increase the readbility of the generated code. This is not BC-breaking, because RAIIAtenTensorHandle is implemented as header-only.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @chauhang @aakhundov

Differential Revision: D65547216

Summary: To increase the readbility of the generated code. This is not BC-breaking, because RAIIAtenTensorHandle is implemented as header-only.

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 6, 2024

🔗 Helpful Links

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

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

✅ No Failures

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

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

Summary: To increase the readbility of the generated code. This is not BC-breaking, because RAIIAtenTensorHandle is implemented as header-only.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames chauhang aakhundov

[ghstack-poisoned]
Summary: To increase the readbility of the generated code. This is not BC-breaking, because RAIIAtenTensorHandle is implemented as header-only.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames chauhang aakhundov

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Nov 6, 2024
Summary: To increase the readbility of the generated code. This is not BC-breaking, because RAIIAtenTensorHandle is implemented as header-only.

ghstack-source-id: 5d4aff6
Pull Request resolved: #139895
@desertfire
Copy link
Contributor Author

@desertfire has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Nov 6, 2024
@desertfire desertfire requested a review from chenyang78 November 6, 2024 21:02
@facebook-github-bot
Copy link
Contributor

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

desertfire added a commit that referenced this pull request Nov 12, 2024
Summary: #139895 added data_ptr(), but there is a remaining place in cpp_wrapper_gpu.py didn't switch over. Also moved a few AtenTensorHandle related utility functions from arrayref_tensor.h to utils.h.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Nov 12, 2024
Summary: Similar to #139895, add sizes and strides methods to RAIIAtenTensorHandle and ConstantHandle, to increase the code readability.

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Nov 13, 2024
Summary: Similar to #139895, add sizes and strides methods to RAIIAtenTensorHandle and ConstantHandle, to increase the code readability.

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy yf225 chenyang78 kadeng muchulee8 ColinPeppler amjames chauhang aakhundov

[ghstack-poisoned]
desertfire added a commit that referenced this pull request Nov 13, 2024
Summary: Similar to #139895, add sizes and strides methods to RAIIAtenTensorHandle and ConstantHandle, to increase the code readability.

ghstack-source-id: 80c9b8d
Pull Request resolved: #140449
pytorchmergebot pushed a commit that referenced this pull request Nov 14, 2024
Summary: #139895 added data_ptr(), but there is a remaining place in cpp_wrapper_gpu.py didn't switch over. Also moved a few AtenTensorHandle related utility functions from arrayref_tensor.h to utils.h.

Pull Request resolved: #140448
Approved by: https://github.com/chenyang78
ghstack dependencies: #140447
pytorchmergebot pushed a commit that referenced this pull request Nov 14, 2024
Summary: Similar to #139895, add sizes and strides methods to RAIIAtenTensorHandle and ConstantHandle, to increase the code readability.

Pull Request resolved: #140449
Approved by: https://github.com/chenyang78
ghstack dependencies: #140447, #140448
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
Summary: To increase the readbility of the generated code. This is not BC-breaking, because RAIIAtenTensorHandle is implemented as header-only.

Differential Revision: [D65547216](https://our.internmc.facebook.com/intern/diff/D65547216)
Pull Request resolved: pytorch#139895
Approved by: https://github.com/chenyang78
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
…0448)

Summary: pytorch#139895 added data_ptr(), but there is a remaining place in cpp_wrapper_gpu.py didn't switch over. Also moved a few AtenTensorHandle related utility functions from arrayref_tensor.h to utils.h.

Pull Request resolved: pytorch#140448
Approved by: https://github.com/chenyang78
ghstack dependencies: pytorch#140447
pobin6 pushed a commit to pobin6/pytorch that referenced this pull request Dec 5, 2024
Summary: Similar to pytorch#139895, add sizes and strides methods to RAIIAtenTensorHandle and ConstantHandle, to increase the code readability.

Pull Request resolved: pytorch#140449
Approved by: https://github.com/chenyang78
ghstack dependencies: pytorch#140447, pytorch#140448
@github-actions github-actions bot deleted the gh/desertfire/502/head branch December 8, 2024 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants