Merged
Conversation
fmassa
reviewed
Jul 3, 2020
Member
fmassa
left a comment
There was a problem hiding this comment.
Codecov Report
@@ Coverage Diff @@
## master #2384 +/- ##
==========================================
+ Coverage 70.65% 71.36% +0.70%
==========================================
Files 94 94
Lines 7897 8328 +431
Branches 1241 1385 +144
==========================================
+ Hits 5580 5943 +363
- Misses 1934 1972 +38
- Partials 383 413 +30
Continue to review full report at Codecov.
|
fmassa
reviewed
Jul 3, 2020
fmassa
reviewed
Jul 7, 2020
Member
|
Test failures seem related |
fmassa
reviewed
Jul 7, 2020
fmassa
pushed a commit
to fmassa/vision-1
that referenced
this pull request
Jul 9, 2020
* Fixes Xiao's repro * Ports nms to use full dispatcher * Move HIPGuard to nms_cuda * clang-format * run models in test_models.py on GPU if available * Francisco's comment, also disable cuda model tests to see if CPU alone still passes * cuda tests now pass locally, although still not comparing to saved numerics * add note for thing to ask francisco * Allow cuda and cpu tests to share a data file * ignore suffix if unneeded * Skip autocast numerics checks for a few models * Add roi_align test Co-authored-by: Michael Carilli <mcarilli@nvidia.com>
fmassa
added a commit
that referenced
this pull request
Jul 9, 2020
* Fixes Xiao's repro * Ports nms to use full dispatcher * Move HIPGuard to nms_cuda * clang-format * run models in test_models.py on GPU if available * Francisco's comment, also disable cuda model tests to see if CPU alone still passes * cuda tests now pass locally, although still not comparing to saved numerics * add note for thing to ask francisco * Allow cuda and cpu tests to share a data file * ignore suffix if unneeded * Skip autocast numerics checks for a few models * Add roi_align test Co-authored-by: Michael Carilli <mcarilli@nvidia.com> Co-authored-by: mcarilli <mcarilli@gmail.com> Co-authored-by: Michael Carilli <mcarilli@nvidia.com>
This was referenced Oct 21, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a minimal set of diffs that enable torchvision models to work with
torch.cuda.amp.autocast. Custom C++ ops (roi_alignandnms) require the most attention.In later modifications to Pytorch, I'll allow external libs to use Pytorch's internal autocast utilities, after which this code can be made cleaner. For 1.6, however, copy pasting some utilities is the best we can do.
Should close pytorch/pytorch#37735.