Skip to content
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

Merged
merged 4 commits into from
Jan 7, 2021
Merged

Conversation

bw4sz
Copy link
Contributor

@bw4sz bw4sz commented Jan 7, 2021

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.

@bw4sz bw4sz mentioned this pull request Jan 7, 2021
@datumbox datumbox self-requested a review January 7, 2021 18:08
Copy link
Contributor

@datumbox datumbox left a 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.

torchvision/datasets/voc.py Outdated Show resolved Hide resolved
torchvision/models/detection/mask_rcnn.py Outdated Show resolved Hide resolved
Co-authored-by: Vasilis Vryniotis <[email protected]>
Copy link
Contributor Author

@bw4sz bw4sz left a 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.

@datumbox
Copy link
Contributor

datumbox commented Jan 7, 2021

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. :)

Copy link
Contributor

@datumbox datumbox left a 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. :)

@datumbox
Copy link
Contributor

datumbox commented Jan 7, 2021

@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 Allow edits and access to secrets by maintainers checkbox on the right.

@datumbox datumbox merged commit 7536e29 into pytorch:master Jan 7, 2021
facebook-github-bot pushed a commit that referenced this pull request Jan 21, 2021
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants