Skip to content

[ONNX] Support renaming in dynamic axes to shapes conversion#165769

Closed
titaiwangms wants to merge 4 commits intopytorch:mainfrom
titaiwangms:titaiwang/support_from_dy_axes_to_dy_shapes_rename
Closed

[ONNX] Support renaming in dynamic axes to shapes conversion#165769
titaiwangms wants to merge 4 commits intopytorch:mainfrom
titaiwangms:titaiwang/support_from_dy_axes_to_dy_shapes_rename

Conversation

@titaiwangms
Copy link
Collaborator

Discovered in ##165748

This PR also deprecates the conversion. ONNX exporter team does not intend to maintain the conversion in long term.

@pytorch-bot
Copy link

pytorch-bot bot commented Oct 17, 2025

🔗 Helpful Links

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

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

✅ No Failures

As of commit 683ff64 with merge base faff826 (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 Oct 17, 2025
Comment on lines 45 to 46
"This function converts 'dynamic_axes' format (including custom axis names) to 'dynamic_shapes' format. "
"Instead of relying on this conversion, provide 'dynamic_shapes' directly using torch.export.Dim objects with custom names.",
Copy link
Collaborator

@justinchuby justinchuby Oct 17, 2025

Choose a reason for hiding this comment

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

We do support strings right? Maybe just say supply dynamic_shapes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed "torch.export.Dim objects"

@titaiwangms
Copy link
Collaborator Author

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 17, 2025
@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

Chao1Han pushed a commit to Chao1Han/pytorch that referenced this pull request Oct 21, 2025
…#165769)

Discovered in #pytorch#165748

This PR also deprecates the conversion. ONNX exporter team does not intend to maintain the conversion in long term.
Pull Request resolved: pytorch#165769
Approved by: https://github.com/justinchuby
zhudada0120 pushed a commit to zhudada0120/pytorch that referenced this pull request Oct 22, 2025
…#165769)

Discovered in #pytorch#165748

This PR also deprecates the conversion. ONNX exporter team does not intend to maintain the conversion in long term.
Pull Request resolved: pytorch#165769
Approved by: https://github.com/justinchuby
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 open source release notes: onnx torch.onnx related changes that should show up in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants