8000 [ONNX] Adjust and add deprecation messages by justinchuby · Pull Request #146639 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[ONNX] Adjust and add deprecation messages #146639

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

Closed
wants to merge 12 commits into from

Conversation

justinchuby
Copy link
Collaborator
@justinchuby justinchuby commented Feb 6, 2025

Adjust and add deprecation messages to torch.onnx utilities and verification methods because they are only related to torch script and are obsolete.

Removed unused _exporter_states.py and removed the internal deprecation module in favor of the typing_extensions deprecated decorator.

Copy link
pytorch-bot bot commented Feb 6, 2025

🔗 Helpful Links

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

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

⏳ No Failures, 1 Pending

As of commit 6e50139 with merge base 41e6d18 (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 Feb 6, 2025
@justinchuby justinchuby changed the title [ONNX] Create deprecation warning on dynamo_export [ONNX] Deprecate old features Feb 6, 2025
@justinchuby justinchuby force-pushed the justinchu/deprecation4 branch from 4bd5dbc to b024438 Compare February 7, 2025 04:28
@justinchuby justinchuby changed the title [ONNX] Deprecate old features [ONNX] Adjust and add deprecation messages Feb 7, 2025
@justinchuby justinchuby marked this pull request as ready for review February 7, 2025 04:29
@justinchuby justinchuby added module: onnx Related to torch.onnx topic: deprecation topic category labels Feb 7, 2025
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.

Why are we removing category

@justinchuby
Copy link
Collaborator Author
justinchuby commented Feb 7, 2025

Why are we removing category

That's because I realized DeprecationWarning is the default: https://docs.python.org/3/library/warnings.html#warnings.deprecated

@justinchuby
Copy link
Collaborator Author

@pytorchbot merge

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

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@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

@pytorchmergebot
Copy link
Collaborator

The merge job was canceled or timed out. This most often happen if two merge requests were issued for the same PR, or if merge job was waiting for more than 6 hours for tests to finish. In later case, please do not hesitate to reissue the merge command
For more information see pytorch-bot wiki.

@justinchuby
Copy link
Collaborator Author

@pytorchbot merge -f "rocm timed out"

@pytorchmergebot
8000
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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

@atalman
Copy link
Contributor
atalman commented Feb 10, 2025

@pytorchmergebot revert -c ghfirst -m "Sorry Need to revert #146425"

@pytorchmergebot
Copy link
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot
Copy link
Collaborator

@justinchuby your PR has been successfully reverted.

pytorchmergebot added a commit that referenced this pull request Feb 10, 2025
This reverts commit 63c2909.

Reverted #146639 on behalf of https://github.com/atalman due to Sorry Need to revert #146425 ([comment](#146639 (comment)))
@pytorchmergebot pytorchmergebot added Reverted ci-no-td Do not run TD on this PR labels Feb 10, 2025
justinchuby added a commit to justinchuby/pytorch that referenced this pull request Feb 11, 2025
Adjust and add deprecation messages to torch.onnx utilities and verification methods because they are only related to torch script and are obsolete.

Removed unused `_exporter_states.py` and removed the internal deprecation module in favor of the typing_extensions deprecated decorator.
Pull Request resolved: pytorch#146639
Approved by: https://github.com/titaiwangms
@justinchuby
Copy link
Collaborator Author

Replaced by #146923

67E6
pytorchmergebot pushed a commit that referenced this pull request Feb 12, 2025
Reland two PRs
- #146425
- #146639

Fixed by removing the deprecation warning on a base class `ExportOptions`.
Pull Request resolved: #146923
Approved by: https://github.com/titaiwangms
Raymo111 pushed a commit that referenced this pull request Feb 20, 2025
Adjust and add deprecation messages to torch.onnx utilities and verification methods because they are only related to torch script and are obsolete.

Removed unused `_exporter_states.py` and removed the internal deprecation module in favor of the typing_extensions deprecated decorator.
Pull Request resolved: #146639
Approved by: https://github.com/titaiwangms
Raymo111 pushed a commit that referenced this pull request Feb 20, 2025
This reverts commit 63c2909.

Reverted #146639 on behalf of https://github.com/atalman due to Sorry Need to revert #146425 ([comment](#146639 (comment)))
Raymo111 pushed a commit that referenced this pull request Feb 20, 2025
Reland two PRs
- #146425
- #146639

Fixed by removing the deprecation warning on a base class `ExportOptions`.
Pull Request resolved: #146923
Approved by: https://github.com/titaiwangms
Ryo-not-rio pushed a commit to Ryo-not-rio/pytorch that referenced this pull request Feb 24, 2025
…146923)

Reland two PRs
- pytorch#146425
- pytorch#146639

Fixed by removing the deprecation warning on a base class `ExportOptions`.
Pull Request resolved: pytorch#146923
Approved by: https://github.com/titaiwangms
majing921201 pushed a commit to majing921201/pytorch that referenced this pull request Mar 4, 2025
majing921201 pushed a commit to majing921201/pytorch that referenced this pull request Mar 4, 2025
…146923)

Reland two PRs
- pytorch#146425
- pytorch#146639

Fixed by removing the deprecation warning on a base class `ExportOptions`.
Pull Request resolved: pytorch#146923
Approved by: https://github.com/titaiwangms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-no-td Do not run TD on this PR 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 Reverted topic: deprecation topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0