-
Notifications
You must be signed in to change notification settings - Fork 25.7k
[ONNX] Refactor torchscript based exporter #161323
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161323
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ✅ No FailuresAs of commit 153c848 with merge base 378edb0 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> ghstack-source-id: 1c4e008 Pull Request resolved: pytorch#161323 Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> ghstack-source-id: 1c4e008 Pull Request resolved: pytorch#161323 Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> ghstack-source-id: 1c4e008 Pull Request resolved: pytorch#161323 Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> ghstack-source-id: 64d66f1 Pull Request resolved: pytorch#161323 Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> ghstack-source-id: 64d66f1 Pull Request resolved: pytorch#161323 Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> ghstack-source-id: 36ef09c Pull Request resolved: pytorch#161323 Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
|
@angelayi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> ghstack-source-id: 31e64f4 Pull Request resolved: pytorch#161323 Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com>
|
@angelayi 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 |
|
Starting merge as part of PR stack under #161449 |
|
Starting merge as part of PR stack under #161546 |
Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> Pull Request resolved: #161449 Approved by: https://github.com/xadupre, https://github.com/titaiwangms ghstack dependencies: #161323
Remove import of two functions - _run_symbolic_function - _run_symbolic_method to the `torch.onnx` namespace. Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> Pull Request resolved: #161546 Approved by: https://github.com/titaiwangms ghstack dependencies: #161323, #161449
Refactor torchscript based exporter logic to move them to a single (private) location for better code management. Original public module and method apis are preserved. - Updated module paths in `torch/csrc/autograd/python_function.cpp` accordingly - Removed `check_onnx_broadcast` from `torch/autograd/_functions/utils.py` because it is private&unused @albanD / @soulitzer could you review changes in `torch/csrc/autograd/python_function.cpp` and `torch/autograd/_functions/utils.py`? Thanks! ## BC Breaking - **Deprecated members in `torch.onnx.verification` are removed** Differential Revision: [D81236421](https://our.internmc.facebook.com/intern/diff/D81236421) Pull Request resolved: pytorch#161323 Approved by: https://github.com/titaiwangms, https://github.com/angelayi
…#161449) Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> Pull Request resolved: pytorch#161449 Approved by: https://github.com/xadupre, https://github.com/titaiwangms ghstack dependencies: pytorch#161323
Remove import of two functions - _run_symbolic_function - _run_symbolic_method to the `torch.onnx` namespace. Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> Pull Request resolved: pytorch#161546 Approved by: https://github.com/titaiwangms ghstack dependencies: pytorch#161323, pytorch#161449
Refactor torchscript based exporter logic to move them to a single (private) location for better code management. Original public module and method apis are preserved. - Updated module paths in `torch/csrc/autograd/python_function.cpp` accordingly - Removed `check_onnx_broadcast` from `torch/autograd/_functions/utils.py` because it is private&unused @albanD / @soulitzer could you review changes in `torch/csrc/autograd/python_function.cpp` and `torch/autograd/_functions/utils.py`? Thanks! ## BC Breaking - **Deprecated members in `torch.onnx.verification` are removed** Differential Revision: [D81236421](https://our.internmc.facebook.com/intern/diff/D81236421) Pull Request resolved: pytorch#161323 Approved by: https://github.com/titaiwangms, https://github.com/angelayi
…#161449) Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> Pull Request resolved: pytorch#161449 Approved by: https://github.com/xadupre, https://github.com/titaiwangms ghstack dependencies: pytorch#161323
Remove import of two functions - _run_symbolic_function - _run_symbolic_method to the `torch.onnx` namespace. Signed-off-by: Justin Chu <justinchuby@users.noreply.github.com> Pull Request resolved: pytorch#161546 Approved by: https://github.com/titaiwangms ghstack dependencies: pytorch#161323, pytorch#161449
Stack from ghstack (oldest at bottom):
Refactor torchscript based exporter logic to move them to a single (private) location for better code management. Original public module and method apis are preserved.
torch/csrc/autograd/python_function.cppaccordinglycheck_onnx_broadcastfromtorch/autograd/_functions/utils.pybecause it is private&unused@albanD / @soulitzer could you review changes in
torch/csrc/autograd/python_function.cppandtorch/autograd/_functions/utils.py? Thanks!BC Breaking
torch.onnx.verificationare removedcc @titaiwangms @albanD
Differential Revision: D81236421