KEMBAR78
[ONNX] Deprecation message follow up by justinchuby · Pull Request #147005 · pytorch/pytorch · GitHub
Skip to content

Conversation

@justinchuby
Copy link
Collaborator

@justinchuby justinchuby commented Feb 12, 2025

Follow up on #146923 to address comments.

This pull request includes updates to the torch/onnx module, focusing on deprecations and documentation improvements. The most important changes involve moving version change notes within the export function, updating deprecation messages, and removing example code in the dynamo_export function.

Documentation and Deprecation Updates:

  • torch/onnx/__init__.py: Moved version change notes to the correct location within the export function's docstring. Updated the deprecation note for the dynamo_export function to version 2.7 and removed example code from its docstring. [1] [2] [3] [4]

  • torch/onnx/utils.py: Enhanced deprecation messages for several functions (select_model_mode_for_export, disable_apex_o2_state_dict_hook, setup_onnx_logging, unconvertible_ops) to provide clearer guidance on their removal and suggest copying logic if needed. [1] [2] [3] [4] [5]

@pytorch-bot
Copy link

pytorch-bot bot commented Feb 12, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 3 Pending

As of commit d1f05c5 with merge base 7f62616 (image):
💚 Looks good so far! There are no failures yet. 💚

UNSTABLE - The following jobs are marked as unstable, possibly due to flakiness on trunk:

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 Feb 12, 2025
@justinchuby justinchuby added module: onnx Related to torch.onnx topic: docs topic category labels Feb 12, 2025
@justinchuby justinchuby requested a review from xadupre February 12, 2025 19:08
@justinchuby
Copy link
Collaborator Author

@pytorchbot merge -i

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Feb 12, 2025
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged while ignoring the following 1 checks: pull / linux-focal-py3.13-clang10 / test (default, 4, 5, lf.linux.4xlarge)

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

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: docs topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants