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] Update the default opset to version 14 #83284
Conversation
Update the default opset by running the `update_default_opset_version.py` script [ghstack-poisoned]
🔗 Helpful links
❌ 1 New FailuresAs of commit 221b1db (more details on the Dr. CI page): Expand to see more
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakagespull / linux-bionic-py3_7-clang8-xla / test (xla, 1, 1, linux.2xlarge) (1/1)Step: "Test" (full log | diagnosis details)
|
Update the default opset by running the `update_default_opset_version.py` script [ghstack-poisoned]
Update the default opset by running the `update_default_opset_version.py` script [ghstack-poisoned]
Update the default opset by running the `update_default_opset_version.py` script [ghstack-poisoned]
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.
Hi @justinchuby, please provide a clear and concise description of why we are changing the default opset. Documenting the reason helps us in the future, when we are debugging problems that are specific to opset version that affects a particular runtime
What is the motivation for the proposal? Changing the default opset can break Caffe2 and any other runtime that consumes. IIRC, it might be because we are trying to stay 3 version behind the latest, is that it?
Done. PTAL. The change is done by running the script. As I understand it - yes it is because we want to use the oldest version in the last 18 months (mentioned in the script). If versions are usually explicitly specified during conversion, I am hoping nothing will break with this change? Do we need an import to verify? |
Assuming people use explicit version on the torch.onnx.export call, nothing should break, but the API also allows not setting it, so a break is possible. Although the ONNX converter team know about the policy for updating the opset, the general public probably dont, so expliciting the reason on the PR is always a good idea. Especially for those that do not explicitly specify opset version and spend days debugging a model change they have no idea where it came from :P |
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.
The change LGTM.
One aspect that we never discussed when changing opset versions before, but I thought about it now is: Should we add module: BC-breaking
or topic: BC breaking
Github labels on the PR that changes opset version?
For scripts that use implicit opset version, the opset change can cause BC issues and the PyTorch release notes should explicit that
@BowenBao @shubhambhokare1 any thoughts?
I agree with the BC breaking concern and I think it's the cost we have to pay for moving forward. Good idea to add the BC-breaking tags. Linking the original PR from Gary for reference #73898. @justinchuby I'm not sure about this line |
Thanks for pointing this out. For some reason I just assumed it is the process when there is a new opset coming out. I have detached #83287 |
Update the default opset by running the `update_default_opset_version.py` script. The update is done in a regularly to ensure we are in sync with the onnx updates. All changes are produced by the script. [ghstack-poisoned]
Update the default opset by running the `update_default_opset_version.py` script ghstack-source-id: fe35edbbc06ab78276200db75104705de07f1958 Pull Request resolved: #83284
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.
🍺
Update the default opset by running the `update_default_opset_version.py` script. The update is done in a regularly to ensure we are in sync with the onnx updates. All changes are produced by the script. [ghstack-poisoned]
Update the default opset by running the `update_default_opset_version.py` script ghstack-source-id: fe35edbbc06ab78276200db75104705de07f1958 Pull Request resolved: #83284
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.
LGTM, not sure why it has onnx-needs-import
label
@pytorchbot merge -g |
@pytorchbot successfully started a merge job. Check the current status here. |
Merge failed |
@pytorchbot merge -f "unrelated xla build error" |
@pytorchbot successfully started a merge job. Check the current status here. |
Summary: Update the default opset by running the `update_default_opset_version.py` script. The update is done in a regularly to ensure we are in sync with the onnx updates. All changes are produced by the script. Pull Request resolved: #83284 Approved by: https://github.com/AllenTiTaiWang, https://github.com/malfet, https://github.com/BowenBao Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/e4f74f0891da9e49c5c82df05794f7723b05cbac Reviewed By: atalman Differential Revision: D38852456 fbshipit-source-id: 0555d1eb1d2d66687ee60c9f3409fca677f7b41b
Stack from ghstack (oldest at bottom):
Update the default opset by running the
update_default_opset_version.py
script. The update is done in a regularly to ensure we are in sync with the onnx updates. All changes are produced by the script.