-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
[ONNX] Support optional type (#68793) #73284
Conversation
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <[email protected]> Co-authored-by: neginraoof <[email protected]> [ghstack-poisoned]
CI Flow Status⚛️ CI FlowRuleset - Version:
|
🔗 Helpful links
💊 CI failures summary and remediationsAs of commit b8fab95 (more details on the Dr. CI page): Expand to see more
🕵️ 6 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakagespull / linux-xenial-py3.7-gcc5.4 / test (default, 1, 2, linux.2xlarge) (1/6)Step: "Test" (full log | diagnosis details | 🔁 rerun)
|
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <bowbaomicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> [ghstack-poisoned]
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <bowbaomicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> ghstack-source-id: df051bdc2b735eef9830f094cefa003d1450d496 Pull Request resolved: #73284
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <bowbaomicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> [ghstack-poisoned]
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <bowbaomicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> [ghstack-poisoned]
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <bowbaomicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> ghstack-source-id: 297f9ee8cab312adcec1a527dca70d0c31b32af2 Pull Request resolved: #73284
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@suo can you please check(or add someone) who knows whether methods modified in |
sorry, missed the ping. @eellison do you mind looking over the JIT changes |
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.
Couple questions
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: garymm <garymiguelmicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> Differential Revision: [D34625646](https://our.internmc.facebook.com/intern/diff/D34625646) [ghstack-poisoned]
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <bowbaomicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> ghstack-source-id: 48155ca020dd22a932da9263d9e616678251c6af Pull Request resolved: #73284
@malfet rebased again to resolve conflicts. Please import |
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: garymm <garymiguelmicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> Differential Revision: [D34625646](https://our.internmc.facebook.com/intern/diff/D34625646) [ghstack-poisoned]
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <bowbaomicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> ghstack-source-id: c56814f56de2cc66ea6ed17042c60d454f33b455 Pull Request resolved: #73284
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: garymm <garymiguelmicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> Differential Revision: [D34625646](https://our.internmc.facebook.com/intern/diff/D34625646) [ghstack-poisoned]
Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Co-authored-by: BowenBao <bowbaomicrosoft.com> Co-authored-by: neginraoof <neginmrutexas.edu> ghstack-source-id: 9ef86bbec6336e5533d6cc7c960160e695fa88d6 Pull Request resolved: #73284
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
This change once again regresses some of the internal model conversion tests. [Edit] As @BowenBao suggested, reverting |
Summary: Pull Request resolved: #73284 Some important ops won't support optional type until opset 16, so we can't fully test things end-to-end, but I believe this should be all that's needed. Once ONNX Runtime supports opset 16, we can do more testing and fix any remaining bugs. Test Plan: Imported from OSS Reviewed By: albanD Differential Revision: D34625646 Pulled By: malfet fbshipit-source-id: 537fcbc1e9d87686cc61f5bd66a997e99cec287b Co-authored-by: BowenBao <[email protected]> Co-authored-by: neginraoof <[email protected]> Co-authored-by: Nikita Shulga <[email protected]>
Hey @BowenBao. |
@BowenBao @malfet @eellison This PR is likely to have broken TorchVision. Please see pytorch/vision#5971 for details. @pmeier has done a bisection and confirmed that this commit is responsible. Can you please revert? |
This reverts commit 679fc90.
I'll look at this today. It took us 3 months to get this PR merged so even though it's generally bad practice, I'd really like to fix forward if possible. |
@garymm Thanks for coming back to me. I understand it, if you want to explore fixing the issue rather than reverting the whole PR. Just please prioritise this because TorchVision's ONNX export is broken for the detection models and we are dangerous close to the release. I'm also concerned that the longer we leave this in, the harder it will be to revert it if a fix can't be completed soon. |
Stack from ghstack:
Some important ops won't support optional type until opset 16,
so we can't fully test things end-to-end, but I believe this should
be all that's needed. Once ONNX Runtime supports opset 16,
we can do more testing and fix any remaining bugs.
Co-authored-by: garymm [email protected]
Co-authored-by: neginraoof [email protected]
Differential Revision: D34625646