-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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 script for version updates #83283
Conversation
[ghstack-poisoned]
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 10c0738 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
- Move script to `main()` - Add an `--skip_recompile` option - Remove file edits in `__init__` that do not work anymore [ghstack-poisoned]
- Move script to `main()` - Add an `--skip_recompile` option - Remove file edits in `__init__` that do not work anymore [ghstack-poisoned]
- Move script to `main()` - Add an `--skip_recompile` option - Remove file edits in `__init__` that do not work anymore [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 the bug being handled or the feature/refactored being proposed. The PR description gives context for a faster review.
If this is a bug fix, describe the bug, provide a minimal repro, describe the strategy to fix and provide unit tests.
If this is a feature/redesign (seems to be the case), outline the motivation for the proposal. Is your code related to a specific problem? e.g., "I'm working on X and would like Y to be possible". If this is related to another GitHub issue, please link here too.
Done. PTAL |
This PR updates the `tools/onnx/update_default_opset_version.py` script to ensure files are edited correctly to prepare for the opset 17 support in torch.onnx. - (clean up) Move script to `main()` - Add an `--skip_recompile` option to avoid recompiling pytorch if we want to rerun the process due to errors after compilation is done - Remove file edits in `__init__` that do not work anymore [ghstack-poisoned]
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument( | ||
"--skip_build", action="store_true", help="Skip building pytorch" |
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.
Please remember to update the change to your description as well.
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.
Done
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.
🍺
This PR updates the `tools/onnx/update_default_opset_version.py` script to ensure files are edited correctly to prepare for the opset 17 support in torch.onnx. - (clean up) Move script to `main()` - Add an `--skip_build` option to avoid building pytorch if we want to rerun the process due to errors after compilation is done - Update to edit the correct files now that the onnx files were refactored [ghstack-poisoned]
cc @abock for approval |
@pytorchbot merge |
@pytorchbot successfully started a merge job. Check the current status here. |
Merge failed due to Refusing to merge as mandatory check(s) pull failed for rule ONNX exporter |
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
This PR updates the `tools/onnx/update_default_opset_version.py` script to ensure files are edited correctly to prepare for the opset 17 support in torch.onnx. - (clean up) Move script to `main()` - Add an `--skip_build` option to avoid building pytorch if we want to rerun the process due to errors after compilation is done - Update to edit the correct files now that the onnx files were refactored [ghstack-poisoned]
Successfully rebased |
ghstack-source-id: da984a01fae8878e7ee1856c900a2f058a70507a Pull Request resolved: #83283
@pytorchbot merge -g |
@pytorchbot successfully started a merge job. Check the current status here. |
Summary: This PR updates the `tools/onnx/update_default_opset_version.py` script to ensure files are edited correctly to prepare for the opset 17 support in torch.onnx. - (clean up) Move script to `main()` - Add an `--skip_build` option to avoid building pytorch if we want to rerun the process due to errors after compilation is done - Update to edit the correct files now that the onnx files were refactored Pull Request resolved: #83283 Approved by: https://github.com/thiagocrepaldi, https://github.com/AllenTiTaiWang, https://github.com/abock Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/cd68f08992e0985f1032726571ebe781aa50f82a Reviewed By: seemethere, atalman Differential Revision: D38770022 fbshipit-source-id: ae372c099b23194328788a0af8cb9f4494d04f18
Stack from ghstack (oldest at bottom):
This PR updates the
tools/onnx/update_default_opset_version.py
script to ensure files are edited correctly to prepare for the opset 17 support in torch.onnx.main()
--skip_build
option to avoid building pytorch if we want to rerun the process due to errors after compilation is done