Skip to content

Add typing annotations to detection/backbone_utils #4603

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

Merged
merged 11 commits into from
Oct 19, 2021

Conversation

oke-aditya
Copy link
Contributor

@oke-aditya oke-aditya commented Oct 12, 2021

Helps #4582

A headstart for @khushi-411 😃

Initially I was bit hesitant to start, but soon felt that this file isn't very simple for new contributor.

I have just added a couple of types. I felt this would help you.

cc @datumbox

Copy link
Contributor Author

@oke-aditya oke-aditya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few points I thought that might trouble :)

@datumbox
Copy link
Contributor

FYI, there is another file in prototypes that should be types along with this:
https://github.com/pytorch/vision/blob/main/torchvision/prototype/models/detection/backbone_utils.py#L5-L12

@oke-aditya
Copy link
Contributor Author

@khushi-411 CI failure seem to be related. Do you want to give a try and fix stuff?

@oke-aditya oke-aditya marked this pull request as ready for review October 18, 2021 14:08
@oke-aditya oke-aditya requested a review from datumbox October 18, 2021 14:09
@oke-aditya oke-aditya changed the title [WIP] Add typing annotations to detection/backbone_utils Add typing annotations to detection/backbone_utils Oct 18, 2021
@oke-aditya
Copy link
Contributor Author

This should be good to merge once CI is green 😃

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.

Thanks for the PR! Overall it looks OK, I left a couple minor comments, let me know what you think. :)

@datumbox datumbox merged commit 9bee9cc into pytorch:main Oct 19, 2021
@github-actions
Copy link

Hey @datumbox!

You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py

@oke-aditya oke-aditya deleted the type_backbone branch October 19, 2021 10:05
facebook-github-bot pushed a commit that referenced this pull request Oct 25, 2021
Summary:
* Start adding types

* add typing

* Type prototype models

* fix optional type bug

* transient import

* Fix weights type

* fix import

* Apply suggestions from code review

Address nits

Reviewed By: datumbox

Differential Revision: D31898218

fbshipit-source-id: e52ab136755ed0d0cc975a2ec914bd285f3d0674

Co-authored-by: Vasilis Vryniotis <[email protected]>
Co-authored-by: Khushi Agrawal <[email protected]>
Co-authored-by: Vasilis Vryniotis <[email protected]>
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
* Start adding types

* add typing

* Type prototype models

* fix optional type bug

* transient import

* Fix weights type

* fix import

* Apply suggestions from code review

Address nits

Co-authored-by: Vasilis Vryniotis <[email protected]>

Co-authored-by: Khushi Agrawal <[email protected]>
Co-authored-by: Vasilis Vryniotis <[email protected]>
@frgfm frgfm mentioned this pull request Oct 27, 2022
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.

4 participants