-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Enable torch.cuda.amp typechecking #45480
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
Enable torch.cuda.amp typechecking #45480
Conversation
facebook-github-bot
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.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
💊 CI failures summary and remediationsAs of commit 51ba7b5 (more details on the Dr. CI page):
🕵️ 2 new failures recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
Codecov Report
@@ Coverage Diff @@
## master #45480 +/- ##
==========================================
- Coverage 68.47% 68.46% -0.02%
==========================================
Files 405 405
Lines 51821 51836 +15
==========================================
+ Hits 35485 35489 +4
- Misses 16336 16347 +11
Continue to review full report at Codecov.
|
Fix `torch._C._autocast_*_nesting` declarations in __init__.pyi Fix iterable constructor logic: not every iterable can be constructed using `type(val)(val)` trick, for example it would not work for `val=range(10)` although `isinstance(val, Iterable)` is True Change optional resolution logic to meet mypy expectations
a085ec6 to
51ba7b5
Compare
facebook-github-bot
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.
@malfet has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
This crash may be related: The Other than that, LGTM. |
This is currently broken on master, so hopefully unrelated. |
Fix
torch._C._autocast_*_nestingdeclarations in init.pyiFix iterable constructor logic: not every iterable can be constructed using
type(val)(val)trick, for example it would not work forval=range(10)althoughisinstance(val, Iterable)is TrueChange optional resolution logic to meet mypy expectations
Fixes #45436