[executorch] Let custom ops registration code only import ATen headers#107064
[executorch] Let custom ops registration code only import ATen headers#107064larryliu0820 wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/107064
Note: Links to docs will display an error until the docs builds have been completed. ✅ 2 Unrelated FailuresAs of commit dee2dea: UNSTABLE - The following jobs failed but were likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
This pull request was exported from Phabricator. Differential Revision: D48282828 |
|
This pull request was exported from Phabricator. Differential Revision: D48282828 |
89fca5d to
0c41d2c
Compare
|
This pull request was exported from Phabricator. Differential Revision: D48282828 |
1 similar comment
|
This pull request was exported from Phabricator. Differential Revision: D48282828 |
0c41d2c to
5a8dd23
Compare
…rs (pytorch#107064) Summary: Pull Request resolved: pytorch#107064 Basically we generate `CustomOpsNativeFunctions.h` for registering custom ops into PyTorch JIT runtime. This header needs to hookup with the C++ kernel implementation of all the custom ops. For this reason it should include ATen headers instead of Executorch headers. This PR changes it. Test Plan: Rely on existing CI jobs Reviewed By: kirklandsign Differential Revision: D48282828 fbshipit-source-id: 72302976f0375bc9560b83d1632703e07c614e3e
|
This pull request was exported from Phabricator. Differential Revision: D48282828 |
5a8dd23 to
dee2dea
Compare
Summary: X-link: pytorch/pytorch#107064 Basically we generate `CustomOpsNativeFunctions.h` for registering custom ops into PyTorch JIT runtime. This header needs to hookup with the C++ kernel implementation of all the custom ops. For this reason it should include ATen headers instead of Executorch headers. This PR changes it. Reviewed By: kirklandsign Differential Revision: D48282828 fbshipit-source-id: cf4ed96a7fb899b85a71d7efbc3fcd6c5a38632d
|
@pytorchbot merge (Initiating merge automatically since Phabricator Diff has merged) |
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 |
Summary: Basically we generate
CustomOpsNativeFunctions.hfor registering custom ops into PyTorch JIT runtime. This header needs to hookup with the C++ kernel implementation of all the custom ops. For this reason it should include ATen headers instead of Executorch headers. This PR changes it.Test Plan: Rely on existing CI jobs
Differential Revision: D48282828