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] Create empty opset 17 symbolic file #83287

Closed
wants to merge 11 commits into from

Conversation

justinchuby
Copy link
Collaborator

@justinchuby justinchuby commented Aug 11, 2022

Stack from ghstack (oldest at bottom):

The PR

  • Creates an empty symbolic file to house the new ops defined in ONNX 17
  • Increments the max version to 17 and fixes the doc for version 16
  • Enables tests for opset 17
  • Updates the IR version in export.cpp

The PR creates an empty symbolic file to house the new ops defined in ONNX 17. It also increments the max version to 17 and fixes the doc for version 16.

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Aug 11, 2022

🔗 Helpful links

✅ No Failures (0 Pending)

As of commit ca29d0c (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.

The PR creates an empty symbolic file to house the new ops defined in ONNX 17. It also increments the max version to 17 and fixes the doc for version 16.

[ghstack-poisoned]
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17

[ghstack-poisoned]
@justinchuby justinchuby linked an issue Aug 11, 2022 that may be closed by this pull request
33 tasks
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17

[ghstack-poisoned]
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17

[ghstack-poisoned]
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17

[ghstack-poisoned]
@justinchuby justinchuby added the module: onnx Related to torch.onnx label Aug 11, 2022
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17
- Updates the IR version in `export.cpp`

[ghstack-poisoned]
test/onnx/test_pytorch_onnx_onnxruntime.py Outdated Show resolved Hide resolved
torch/csrc/jit/serialization/export.cpp Outdated Show resolved Hide resolved
test/onnx/test_pytorch_onnx_onnxruntime.py Outdated Show resolved Hide resolved
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17
- Updates the IR version in `export.cpp`

[ghstack-poisoned]
justinchuby added a commit to justinchuby/pytorch that referenced this pull request Aug 12, 2022
The PR creates an empty symbolic file to house the new ops defined in ONNX 17. It also increments the max version to 17 and fixes the doc for version 16.

ghstack-source-id: fcf755573d34869d7cbadd354adc1de2135c0521
Pull Request resolved: pytorch#83287
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17
- Updates the IR version in `export.cpp`

[ghstack-poisoned]
@justinchuby justinchuby added topic: improvements topic category topic: new features topic category and removed topic: improvements topic category labels Aug 12, 2022
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17
- Updates the IR version in `export.cpp`

[ghstack-poisoned]
justinchuby added a commit that referenced this pull request Aug 12, 2022
The PR creates an empty symbolic file to house the new ops defined in ONNX 17. It also increments the max version to 17 and fixes the doc for version 16.

ghstack-source-id: 37517d8331b7c69265c68b1b7b4cf98b40cba558
Pull Request resolved: #83287
@titaiwangms titaiwangms self-assigned this Aug 15, 2022
@@ -2,7 +2,7 @@

ONNX_ARCHIVE_MODEL_PROTO_NAME = "__MODEL_PROTO"
onnx_default_opset = 13
onnx_main_opset = 16
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we make a note of newly updated main opsets anywhere in the documentation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not that I know of. onnx_main_opset is an internal value that tracks the latest onnx opset version. Any suggestions?

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.

🍻

@justinchuby
Copy link
Collaborator Author

cc @BowenBao

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.

LGTM. Still think we should discuss further the difference between tested and supported opsets versions, but this PR is about opset 17, so that is fine
I still cant understand why we wouldn't test an opset that is supported by the source-code.

@justinchuby
Copy link
Collaborator Author

@pytorchbot rebase

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a rebase job. Check the current status here

@pytorchmergebot
Copy link
Collaborator

Rebase failed due to Command git -C /home/runner/work/pytorch/pytorch rebase refs/remotes/origin/master gh/justinchuby/8/orig returned non-zero exit code 1

Rebasing (1/1)
Auto-merging test/onnx/test_pytorch_onnx_onnxruntime.py
Auto-merging torch/onnx/_constants.py
CONFLICT (content): Merge conflict in torch/onnx/_constants.py
error: could not apply adb233fb55... [ONNX] Create empty opset 17 symbolic file
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply adb233fb55... [ONNX] Create empty opset 17 symbolic file

Raised by https://github.com/pytorch/pytorch/actions/runs/2885076323

@BowenBao
Copy link
Collaborator

@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!

@pytorchmergebot
Copy link
Collaborator

Merge failed
Reason: This PR is too stale; the last push date was more than 3 days ago. Please rebase and try again.
Raised by https://github.com/pytorch/pytorch/actions/runs/2885742210

@justinchuby
Copy link
Collaborator Author

I will rebase and merge

The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17
- Updates the IR version in `export.cpp`

[ghstack-poisoned]
justinchuby added a commit that referenced this pull request Aug 18, 2022
The PR creates an empty symbolic file to house the new ops defined in ONNX 17. It also increments the max version to 17 and fixes the doc for version 16.

ghstack-source-id: 46909b858648f83137a165e7208661bb56e9ec0b
Pull Request resolved: #83287
@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 19, 2022
Summary:
The PR

- Creates an empty symbolic file to house the new ops defined in ONNX 17
- Increments the max version to 17 and fixes the doc for version 16
- Enables tests for opset 17
- Updates the IR version in `export.cpp`

Pull Request resolved: #83287
Approved by: https://github.com/thiagocrepaldi, https://github.com/AllenTiTaiWang, https://github.com/BowenBao

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/05849eafb92def1c0071d5a7b0bb782360145cbb

Reviewed By: atalman

Differential Revision: D38853638

fbshipit-source-id: b57486aaaf67e35604379701b8ffdd9db6d204ba
@facebook-github-bot facebook-github-bot deleted the gh/justinchuby/8/head branch August 22, 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: new features topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ONNX] Support opset 17 operators
8 participants