[Reland] Add sym_size/stride/numel/storage_offset to native_function.…#100749
[Reland] Add sym_size/stride/numel/storage_offset to native_function.…#100749SherlockNoMad wants to merge 1 commit intomainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/100749
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 84a92f2: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@SherlockNoMad has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
albanD
left a comment
There was a problem hiding this comment.
I'm curious why you need these to be native function?
bd7c850 to
732495a
Compare
torch/_dynamo/eval_frame.py
Outdated
|
@SherlockNoMad has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
They need to be properly aten op, so that they can be included in the Core Aten IR. |
2670da5 to
d09f044
Compare
|
@SherlockNoMad has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
But all of these would work with a registration from python right? |
Sorry, I missed one requirement. |
d09f044 to
5ccaee0
Compare
|
@SherlockNoMad has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Do you mean a libtorch-only build will need to access it? |
|
@pytorchbot rebase -s |
|
@pytorchbot successfully started a rebase job. Check the current status here |
|
Successfully rebased |
5ccaee0 to
5def2ea
Compare
|
@SherlockNoMad has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
yeah |
|
Successfully rebased |
3236705 to
84a92f2
Compare
|
@SherlockNoMad has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge |
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 |
| arg = super(ChangeInputOutputSignature, self).placeholder( | ||
| f"arg{i}", (), {} | ||
| ) | ||
| # Fill node.mata["val"] with faketensolintrunner from the input, |
There was a problem hiding this comment.
@suo lintrunner is being immortalized in _dynamo comments :P
|
@pytorchbot revert -m "It makes ExecuTorch sad, please land via codev and have better description" -c ghfirst |
|
@pytorchbot successfully started a revert job. Check the current status here. |
|
Can't revert PR that was landed via phabricator as D42565586. Please revert by going to the internal diff and clicking Unland. |
| and fake_mode is not None | ||
| and isinstance(flat_args[i], torch.Tensor) | ||
| ): | ||
| arg.node.meta["val"] = fake_mode.from_tensor(flat_args[i]) |
|
Manually pushed the revert in 20cf42d |
|
FYI the correct linked diff for this PR is D45620400 |
#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
|
This pull request was exported from Phabricator. Differential Revision: D45620400 |
Summary: remove _BLACK_LISTED_OPS after pytorch#100749 Test Plan: contbuild & OSS CI Differential Revision: D60056130
Summary: Pull Request resolved: pytorch#131361 remove _BLACK_LISTED_OPS after pytorch#100749 Test Plan: contbuild & OSS CI Differential Revision: D60056130
Summary: remove _BLACK_LISTED_OPS after #100749 Test Plan: contbuild & OSS CI Differential Revision: D60056130 Pull Request resolved: #131361 Approved by: https://github.com/angelayi
Summary: remove _BLACK_LISTED_OPS after pytorch#100749 Test Plan: contbuild & OSS CI Differential Revision: D60056130 Pull Request resolved: pytorch#131361 Approved by: https://github.com/angelayi
…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: 969f4928486e04c57aaf98e20e3c3ca946c51613
Fixes #ISSUE_NUMBER
cc @soumith @voznesenskym @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire