-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix PyTorch Object Detection Estimators Missing Gradients Bug #2249
Fix PyTorch Object Detection Estimators Missing Gradients Bug #2249
Conversation
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## dev_1.15.1 #2249 +/- ##
==============================================
- Coverage 85.62% 85.62% -0.01%
==============================================
Files 308 308
Lines 27470 27476 +6
Branches 5046 5048 +2
==============================================
+ Hits 23522 23526 +4
- Misses 2668 2669 +1
- Partials 1280 1281 +1
|
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
PyTorchObjectDetector
Missing Gradients Bug
Hi @beat-buesser the previous change in #2238 addressed a different bug that only occured for the This is a separate bug-fix independent from both #2238 and #2169 that affects both the |
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.
Hi @f4str Thank you very much for noticing and fixing this bug!
Description
When a non-leaf tensor is moved to another device, the gradient retention property is lost and needs to be manually set again. This PR adds this minor change to both the
PyTorchObjectDetector
andPyTorchYolo
estimators.Fixes #2248
Type of change
Please check all relevant options.
Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.
PyTorchObjectDetector
are unchangedPyTorchFasterRCNN
are unchangedTest Configuration:
Checklist