-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Add sym_size/stride/numel/storage_offset to native_function.yaml #91919
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
[ghstack-poisoned]
| device_check: NoCheck | ||
| device_guard: False | ||
|
|
||
| - func: sym_size.int(Tensor self, int dim) -> SymInt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the main reason for adding these to native_functions so that we can add (canonical)? Or is there anything else.
Nit: this will also expose these under the torch namespace, torch.sym_size. Do we want that? (If not, there’s a way to hide it; I think there’s a dent list of ops hiding in gen_python_functions.py)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My intention for adding them is to mark them as canonical, and publish a schema for these ops.
I actually don't know if it matters for torchgen to work for these ops, as they already have special handling in python_variable.py.
Yes, I don't need to expose them as torch.sym_size, I just need them available as torch.ops.aten.sym_size.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But I am not able to make the CI happy...
I run into compiling problems for generated header files: https://gist.github.com/SherlockNoMad/19e9d618c22f57cc2d7eaf6700079fd0
…n.yaml" [ghstack-poisoned]
…n.yaml" [ghstack-poisoned]
Merge startedYour 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 |
|
@pytorchbot revert -m "Break internal build" -c ghfirst |
|
@pytorchbot successfully started a revert job. Check the current status here. |
|
@SherlockNoMad your PR has been successfully reverted. |
…aml (#91919)" This reverts commit 0388400. Reverted #91919 on behalf of https://github.com/atalman due to Break internal build
…yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: f0ea5a7e60b2293ac11b3d4fcc88337c36f2ba08
…yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9
…yaml (#91… (#92402) Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Approved by: https://github.com/ezyang
…n.yaml" [ghstack-poisoned]
…yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9 ghstack-source-id: 969f492
…yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9 ghstack-source-id: 969f492
…yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9 ghstack-source-id: 969f492
…yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9 ghstack-source-id: 969f492
…yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9 ghstack-source-id: 969f492
…yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9 ghstack-source-id: 969f492
#100749) …yaml (#91… (#91919) Summary: Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Reviewed By: ezyang Differential Revision: D42565586 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9 ghstack-source-id: 969f492 Fixes #ISSUE_NUMBER Pull Request resolved: #100749 Approved by: https://github.com/zhxchen17, https://github.com/albanD
#91919) Summary: …yaml (https://github.com/pytorch/pytorch/issues/91… (#91919) Pull Request resolved: #91919 Approved by: https://github.com/ezyang Fixes #ISSUE_NUMBER Pull Request resolved: #92402 Pulled By: SherlockNoMad fbshipit-source-id: 1c2986e45307e076d239836a1b45441a9fa3c9d9 ghstack-source-id: 969f492 Fixes #ISSUE_NUMBER cc soumith voznesenskym penguinwu anijain2305 EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng Xia-Weiwen wenzhe-nrv jiayisunx desertfire Pull Request resolved: #100749 SherlockNoMad Differential Revision: D45620400 fbshipit-source-id: 82fafda359febdf9246f63a1355e376ecf17d5cb
Stack from ghstack (oldest at bottom):