-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Finish deprecation cycle for inplace view error checks #56093
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 f04bc30 (more details on the Dr. CI page):
🚧 2 fixed upstream failures:These were probably caused by upstream breakages that were already fixed.
Please rebase on the
|
7c476bc to
435aa3b
Compare
Codecov Report
@@ Coverage Diff @@
## master #56093 +/- ##
=======================================
Coverage 77.12% 77.12%
=======================================
Files 1912 1912
Lines 189559 189557 -2
=======================================
- Hits 146195 146194 -1
+ Misses 43364 43363 -1 |
albanD
left a comment
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.
Looks mostly good! Thanks
2fa5fb8 to
06415cb
Compare
06415cb to
f04bc30
Compare
albanD
left a comment
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.
lgtm
|
@soulitzer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
|
@soulitzer merged this pull request in dd8bfe2. |
Summary: Fixes pytorch#50617 Also updates the relevant tests to expect errors instead of warnings Pull Request resolved: pytorch#56093 Reviewed By: agolynski Differential Revision: D27806795 Pulled By: soulitzer fbshipit-source-id: 93c5c28edb1f97fa4457332c2ef4711f050ac81f
Fixes #50617
BC-breaking Notes
In-place modification of views will now raise an error if that view was created by a custom function or a function that returns multiple views, or if the view was created in no-grad mode.
Modifying in-place a view created in the situations above are error-prone and have been deprecated since v1.5.0. Doing these in-place modifications are now forbidden.
For more information on how to work around this, see the related sections the release notes linked below:
splitandchunk, i.e., functions that return multiple views).-- end release notes --
This PR also updates the relevant tests to expect errors instead of warnings