-
Notifications
You must be signed in to change notification settings - Fork 24.1k
[ONNX] Support optional type (#68793) #73284
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
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 <bowbao@microsoft.com> Co-authored-by: neginraoof <neginmr@utexas.edu> [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 breakages
|
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: df051bd 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: 297f9ee 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: 48155ca 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: c56814f 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: 9ef86bb 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 <bowbao@microsoft.com> Co-authored-by: neginraoof <neginmr@utexas.edu> Co-authored-by: Nikita Shulga <nshulga@fb.com>
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 garymiguel@microsoft.com
Co-authored-by: neginraoof neginmr@utexas.edu
Differential Revision: D34625646