-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[ONNX] Remove deprecated functions #107208
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/107208
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit 6ca3724 with merge base aee5dec ( UNSTABLE - The following job failed but was likely due to flakiness present on trunk and has been marked as unstable:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
7e17f73
to
a3f6a60
Compare
_export
usage_export
usage
a3f6a60
to
1131f8d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK torch.onnx._export
is a private API, not a deprecated one.
The part that concerns me the most is that we probably don't want to add more options to the already cluttered torch.onnx.export
public API.
If this PR can drop the use of _export
in favor of export
without adding new args to export, that would be a more reasonable change
Hi, Thiago, thank for your review. I change |
Thanks for catching this. In tests, we should use |
75278d2
to
8aa6250
Compare
_export
usage
The call to |
8aa6250
to
3925889
Compare
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Successfully rebased |
b9ddc29
to
fcb62be
Compare
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 1 checks: pull / linux-focal-cuda12.1-py3.10-gcc9-sm86 / test (default, 4, 5, linux.g5.4xlarge.nvidia.gpu, unstable) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
I briefly looked and it looks like at least for If it gets reverted, it's probably better to split this PR into several - one PR for one functions. I'm also going to add check for this to https://github.com/pytorch/test-infra/tree/main/tools/torchfix |
the fix will probably be replacing |
I see |
The best thing to do will be to copy the dictionary out. Could you share a list of affected variables? |
Let's see if this gets reverted first. It's possible that the code is not really used. |
…move deprecated functions (pytorch#107208)" for test or build failures Summary: This diff is reverting D49346965 D49346965: [ONNX] Remove deprecated functions (pytorch#107208) by generatedunixname499836121 has been identified to be causing the following test or build failures: Tests affected: - [mobile-vision/mobile_cv/mobile_cv/arch/tests:fb_test_jit_backend - test_jit_hta (mobile_cv.arch.tests.fb.test_jit_backend.TestJitBackend)](https://www.internalfb.com/intern/test/844425028079287/) Here's the Multisect link: https://www.internalfb.com/multisect/3068610 Here are the tasks that are relevant to this breakage: We're generating a revert to back out the changes in this diff, please note the backout may land if someone accepts it. If you believe this diff has been generated in error you may Commandeer and Abandon it. Test Plan: NA Reviewed By: amirshim Differential Revision: D49351830
@wangxiyuan For re-landing, let's split this PR into several - one for each removed API as I suggested before. |
@pytorchbot revert -m="Diff reverted internally" -c="ghfirst" This Pull Request has been reverted by a revert inside Meta. To re-land this change, please open another pull request, assign the same reviewers, fix the CI failures that caused the revert and make sure that the failing CI runs on the PR by applying the proper ciflow label (e.g., ciflow/trunk).) |
@pytorchbot successfully started a revert job. Check the current status here. |
@wangxiyuan your PR has been successfully reverted. |
This reverts commit 263ca7d. Reverted #107208 on behalf of https://github.com/facebook-github-bot due to Diff reverted internally ([comment](#107208 (comment)))
sure, feel free to work on it. Thanks. |
To be clear, I'm suggesting you to create the PRs and I can help with landing by updating Meta-internal stuff. |
That fine, Let's remove the deprecated APIs one by one. I'll push them later |
These three functions in symbolic_helper are depreacated and should be removed after pytorch 2.0. The clean up job will be separated into several patches to ensure the safety. See: #107208 Pull Request resolved: #109681 Approved by: https://github.com/thiagocrepaldi
`_export` API was depreacated and should be removed after 2.0. See: #107208 Pull Request resolved: #109763 Approved by: https://github.com/thiagocrepaldi
@wangxiyuan Removal of |
It has been removed, sorry that I forgot to ping you there. I'll pay attention in the future. |
The usage of some functions is deprecated. This PR drop them.