Skip to content
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

Closed
wants to merge 7 commits into from

Conversation

justinchuby
Copy link
Collaborator

@justinchuby justinchuby commented Aug 11, 2022

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.

  • (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

@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 11, 2022

🔗 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.

Click here to manually regenerate this comment.

- Move script to `main()`
- Add an `--skip_recompile` option
- Remove file edits in `__init__` that do not work anymore

[ghstack-poisoned]
@justinchuby justinchuby linked an issue Aug 11, 2022 that may be closed by this pull request
33 tasks
- 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]
Copy link
Collaborator

@thiagocrepaldi thiagocrepaldi left a 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.

@justinchuby
Copy link
Collaborator Author

Done. PTAL

@justinchuby justinchuby added release notes: onnx torch.onnx related changes that should show up in the release notes and removed topic: improvements topic category labels Aug 12, 2022
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"
Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@titaiwangms titaiwangms self-assigned this Aug 15, 2022
Copy link
Collaborator

@titaiwangms titaiwangms left a 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]
@justinchuby
Copy link
Collaborator Author

cc @abock for approval

@justinchuby
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here.
The merge job was triggered without a flag. This means that your change will be merged once all checks on your PR have passed (ETA: 0-4 Hours). If this is not the intended behavior, feel free to use some of the other merge options in the wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

@pytorchmergebot
Copy link
Collaborator

Merge failed due to Refusing to merge as mandatory check(s) pull failed for rule ONNX exporter
Raised by https://github.com/pytorch/pytorch/actions/runs/2870392115

@justinchuby
Copy link
Collaborator Author

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@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]
@pytorchmergebot
Copy link
Collaborator

Successfully rebased gh/justinchuby/6/orig onto refs/remotes/origin/master, please pull locally before adding more changes (for example, via ghstack checkout https://github.com/pytorch/pytorch/pull/83283)

pytorchmergebot pushed a commit that referenced this pull request Aug 16, 2022
ghstack-source-id: da984a01fae8878e7ee1856c900a2f058a70507a
Pull Request resolved: #83283
@justinchuby
Copy link
Collaborator Author

@pytorchbot merge -g

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a merge job. Check the current status here.
The merge job was triggered with the green (-g) flag. This means that your change will be merged once all checks on your PR have passed (ETA: 0-4 Hours). If this is not the intended behavior, feel free to use some of the other merge options in the wiki.
Please reach out to the PyTorch DevX Team with feedback or questions!

facebook-github-bot pushed a commit that referenced this pull request Aug 17, 2022
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
@facebook-github-bot facebook-github-bot deleted the gh/justinchuby/6/head branch August 20, 2022 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed Merged module: onnx Related to torch.onnx open source release notes: onnx torch.onnx related changes that should show up in the release notes topic: not user facing topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ONNX] Support opset 17 operators
7 participants