-
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
Set _device parameter automatically in PreprocessorPyTorch (fixes #1442) #1444
Conversation
Signed-off-by: Nilaksh Das <nilakshdas@gatech.edu>
Signed-off-by: Nilaksh Das <nilakshdas@gatech.edu>
Signed-off-by: Nilaksh Das <nilakshdas@gatech.edu>
This pull request introduces 1 alert when merging 5c84b3a into 09e0e19 - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## dev_1.9.0 #1444 +/- ##
=============================================
- Coverage 90.31% 90.27% -0.04%
=============================================
Files 240 240
Lines 19682 19672 -10
Branches 3490 3490
=============================================
- Hits 17775 17759 -16
- Misses 1110 1114 +4
- Partials 797 799 +2
|
This pull request introduces 1 alert when merging 5c84b3a into 24d7062 - view on LGTM.com new alerts:
|
Hi @nilakshdas Thank you very much! This is a great pull request! It looks like pylint found that we can now remove some of the imports of |
Signed-off-by: Nilaksh Das <nilakshdas@gatech.edu>
Hi @beat-buesser, I've fixed the import issues identified by pylint. Thanks so much for your guidance in my first PR to ART! |
This pull request introduces 1 alert and fixes 4 when merging 1e0f824 into df2e613 - view on LGTM.com new alerts:
fixed alerts:
|
Signed-off-by: Nilaksh Das <nilakshdas@gatech.edu>
This pull request introduces 1 alert and fixes 5 when merging a7b5c93 into df2e613 - view on LGTM.com new alerts:
fixed alerts:
|
This pull request introduces 1 alert and fixes 5 when merging 1377522 into a7c1f7b - view on LGTM.com new alerts:
fixed alerts:
|
Description
The
_device
parameter is not automatically initialized in aPreprocessorPyTorch
object. It is referenced in thePreprocessorPyTorch.device
property, which in turn is used in thePreprocessorPyTorch.__call__
method. This PR alleviates the requirement for child classes to set the_device
parameter and reduces code redundancy.Fixes #1442.
Type of change
Please check all relevant options.
Testing
Test Configuration:
Checklist