-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Avoid infinite recursion in __torch_function__ example #55391
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 4612145 (more details on the Dr. CI page):
1 failure not recognized by patterns:
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. |
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, thanks. I hate special casing so I can see why I didn't consider this fix right away.
Thanks @peterbell10! This fix makes sense to me but I've requested a review from @ezyang. |
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.
Perhaps a small modification.
just goes to show we need to run our doc examples haha |
@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Codecov Report
@@ Coverage Diff @@
## master #55391 +/- ##
==========================================
- Coverage 77.48% 77.06% -0.42%
==========================================
Files 1895 1895
Lines 187193 187193
==========================================
- Hits 145049 144267 -782
- Misses 42144 42926 +782 |
Fixes #55284
This gets the example to run but probably doesn't help the readability of the example.
Thoughts?