Revise deprecation warning for ONNX exporter#166692
Revise deprecation warning for ONNX exporter#166692justinchuby wants to merge 2 commits intomainfrom
Conversation
Updated deprecation warning for ONNX export.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/166692
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 173317e with merge base e3ae059 ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
There was a problem hiding this comment.
Pull Request Overview
This PR updates the deprecation warning message for the legacy TorchScript-based ONNX export to reflect that the new torch.export-based ONNX exporter has already become the default (as of PyTorch 2.9).
Key changes:
- Updated warning text to use past tense ("has become" instead of "will be")
- Removed instructions for switching to the new exporter since it's now the default
- Updated documentation URL to point to the correct location
Comments suppressed due to low confidence (1)
torch/onnx/init.py:1
- The URL path contains a duplicate 'docs' segment (
/docs/stable/instead of/stable/). The correct URL should behttps://pytorch.org/docs/stable/onnx_export.html(remove the first 'docs').
# mypy: allow-untyped-defs
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@pytorchbot merge -f "lint error unrelated to this change" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Updated deprecation warning for ONNX export to reflect the current state. Pull Request resolved: #166692 Approved by: https://github.com/titaiwangms
Updated deprecation warning for ONNX export to reflect the current state. Pull Request resolved: pytorch#166692 Approved by: https://github.com/titaiwangms
Updated deprecation warning for ONNX export to reflect the current state.
cc @titaiwangms