-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Create export_for_inference API and expose core_aten as public facing API #135912
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
Create export_for_inference API and expose core_aten as public facing API #135912
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/135912
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 76cd8bb with merge base 09519eb ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
torch/export/__init__.py
Outdated
| kwargs: Optional[Dict[str, Any]] = None, | ||
| *, | ||
| dynamic_shapes: Optional[Union[Dict[str, Any], Tuple[Any], List[Any]]] = None, | ||
| decomp_table: Optional[Dict["OpOverload", Optional[Callable]]] = None, |
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.
Perhaps this should go last?
torch/export/exported_program.py
Outdated
|
|
||
| def core_aten_decompositions() -> Dict[torch._ops.OperatorBase, Callable]: | ||
| """ | ||
| This is an official decomposition table which contains decomposition of |
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.
Cut official? You can say "default." Or:
This returns a table of decompositions for all aten operators to core aten operators. Use this API...
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
1 similar comment
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
…blic facing API" Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) [ghstack-poisoned]
|
@tugsbayasgalan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot merge -f 'Landed internally' (Initiating merge automatically since Phabricator Diff has merged, using force because this PR might not pass merge_rules.json but landed internally) |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Differential Revision: [D62610491](https://our.internmc.facebook.com/intern/diff/D62610491) Pull Request resolved: #135918 Approved by: https://github.com/avikchaudhuri ghstack dependencies: #135080, #135912
… API (pytorch#135912) Differential Revision: [D62606908](https://our.internmc.facebook.com/intern/diff/D62606908) Pull Request resolved: pytorch#135912 Approved by: https://github.com/avikchaudhuri ghstack dependencies: pytorch#135080
Differential Revision: [D62610491](https://our.internmc.facebook.com/intern/diff/D62610491) Pull Request resolved: pytorch#135918 Approved by: https://github.com/avikchaudhuri ghstack dependencies: pytorch#135080, pytorch#135912
Stack from ghstack (oldest at bottom):
Differential Revision: D62606908