-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Remove legacy constructor calls from pytorch codebase. #54142
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
💊 CI failures summary and remediationsAs of commit 0aefc85 (more details on the Dr. CI page):
ci.pytorch.org: 1 failedThis comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.Please report bugs/suggestions to the (internal) Dr. CI Users group. |
3134806 to
fc64e16
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.
Thanks @ysiraichi. Overall looks good; my Tensor -> tensor default dtype question applies to all similar changes - have you verified whether the different behavior matters?
Codecov Report
@@ Coverage Diff @@
## master #54142 +/- ##
=======================================
Coverage 77.42% 77.42%
=======================================
Files 1895 1895
Lines 187524 187524
=======================================
+ Hits 145194 145196 +2
+ Misses 42330 42328 -2 |
896b12c to
65538a0
Compare
65538a0 to
0486ed1
Compare
c606e54 to
0aefc85
Compare
|
The one CI failure on ROCm is unrelated, this is ready to land. @mruberry could you please have a look at this PR? |
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.
Impressively thorough, @ysiraichi, this is great!
|
@mruberry has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
What's your thinking for a next step, @ysiraichi? |
@ysiraichi Thank you for opening this issue. Indeed we do not want to raise warning for supported features. This was my fault for not thoroughly considering all the use cases of the Tensor constructor. I appreciate your effort in helping make PyTorch better but for now I am going to revert the PR that added this warning (#54414). We should follow up on another way to deprecate this without affecting valid use cases. |
Summary: Follow up from pytorch#53889 Related to pytorch#47112 Removing every occurrence of the legacy constructor call present in PyTorch at: - _docs_ - _benchmarks_ - _test_ - _caffe2_ - _CONTRIBUTING.md_ Pull Request resolved: pytorch#54142 Reviewed By: ngimel Differential Revision: D27699450 Pulled By: mruberry fbshipit-source-id: 530aa3f5746cc8bc1407d5d51b2bbd8075e30546
Follow up from #53889
Related to #47112
Removing every occurrence of the legacy constructor call present in PyTorch at: