-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Remove unused imports after manual review #3229
Conversation
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.
@bw4sz Welcome to PyTorch and thanks for your contribution.
Overall the changes look great. I left a couple of comments, let me know what you think.
Co-authored-by: Vasilis Vryniotis <[email protected]>
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.
Yes, some of these I saw and left, others I missed.
You can safely remove the 2 remaining ones I'm flagging on the unresolved comment. Once this is fixed we can merge the PR. :) |
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 for the contribution @bw4sz. Looking forward to more PRs on the future. :)
@bw4sz Hmm. Unfortunately I can not merge because the branch is out of date with the master branch and I don't have permissions to modify your branch. Either merge with the latest master or click the |
Summary: * remove unused imports after manual review * Update torchvision/datasets/voc.py * remove two more instances Reviewed By: datumbox Differential Revision: D25954561 fbshipit-source-id: 56391cc53e8d4e636ae79ec1a5e91d49ea498661 Co-authored-by: Vasilis Vryniotis <[email protected]> Co-authored-by: Ben Weinstein <[email protected]> Co-authored-by: Vasilis Vryniotis <[email protected]>
Following up from #3226 (comment). @datumbox
This was my first week with pytorch coming from a few years of tensorflow. I try to contribute in any small way to get a feeling for the codebase. I went through and looked for unused imports using my IDE (WingPro 7) which identifies unused imports. I then searched the script to confirm, followed by a manual inspection. I intentionally used a very light hand, there were many situations where an unused import was in a commented out line, or in the 'examples' in the docstring. I choose leave those in, since this was just a small style update. In a roundabout way this is also a nice test of code coverage and unit tests to make sure pull requests are adequately evaluated. I hope it is useful.
Thanks for your work.