KEMBAR78
[ONNX] Update default opset to 18 by justinchuby · Pull Request #156023 · pytorch/pytorch · GitHub
Skip to content

Conversation

justinchuby
Copy link
Collaborator

@justinchuby justinchuby commented Jun 15, 2025

Update default opset for the torchscript exporter to 18 to match the dynamo exporter, because support was actaully added and tested in #118828. In the next version we should plan to update to opset 21 or higher. This change also removes the hard limit on the torchscript exporter for more flexibility.

@pytorch-bot
Copy link

pytorch-bot bot commented Jun 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/156023

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 423f1ba with merge base 655b3b1 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot bot added the release notes: onnx torch.onnx related changes that should show up in the release notes label Jun 15, 2025
@justinchuby justinchuby added module: onnx Related to torch.onnx topic: bc breaking topic category labels Jun 15, 2025
@justinchuby justinchuby added this to the 2.8.0 milestone Jun 15, 2025

const static int kInvalidOpsetVersion = -1;
const static int kMainOpsetVersion = 20;
const static int kMainOpsetVersion = 23;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ni: why isn't this constexpr?

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

@justinchuby justinchuby added the ciflow/trunk Trigger trunk jobs on your pull request label Jun 16, 2025
@justinchuby justinchuby requested a review from xadupre June 16, 2025 05:31
@justinchuby
Copy link
Collaborator Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@justinchuby justinchuby deleted the justinchu/default-18 branch June 16, 2025 12:55
@justinchuby
Copy link
Collaborator Author

@titaiwangms @xadupre @gramalingam PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request 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: bc breaking topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants