Skip to content

Added annotation typing to vgg #2861

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 8 commits into from
Oct 27, 2020
Merged

Added annotation typing to vgg #2861

merged 8 commits into from
Oct 27, 2020

Conversation

frgfm
Copy link
Contributor

@frgfm frgfm commented Oct 21, 2020

Hi there!

As per #2025, annotation typing are welcome in torchvision. So, this PR focuses on torchvision.models.vgg this PR!

Any feedback is welcome!

@pmeier pmeier self-assigned this Oct 21, 2020
@codecov
Copy link

codecov bot commented Oct 21, 2020

Codecov Report

Merging #2861 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2861   +/-   ##
=======================================
  Coverage   73.36%   73.37%           
=======================================
  Files          99       99           
  Lines        8787     8789    +2     
  Branches     1387     1387           
=======================================
+ Hits         6447     6449    +2     
  Misses       1916     1916           
  Partials      424      424           
Impacted Files Coverage Δ
torchvision/models/vgg.py 90.00% <100.00%> (+0.29%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 57b653c...02196ff. Read the comment docs.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

I've left one comment, otherwise looks good

Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

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

Minor nitpicks plus the incremental from the other PRs. Otherwise LGTM.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

I think I'm fine with the changes, I've left only one comment for discussion.

Is it possible to keep with previous behavior? If not, then let's go for how it is, but if it's possible then I would prefer.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

Thanks!

@fmassa fmassa merged commit f9e31a6 into pytorch:master Oct 27, 2020
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
* style: Added annotation typing for vgg

* fix: Fixed annotation typing

* refactor: Removed un-necessary import

* fix: Added missing annotation for kwargs

* fix: Fixed constructor typing

* refactor: Refactored typing to minize changes

* refactor: Refactored typing cast

* fix: Fixed module list typing
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
* style: Added annotation typing for vgg

* fix: Fixed annotation typing

* refactor: Removed un-necessary import

* fix: Added missing annotation for kwargs

* fix: Fixed constructor typing

* refactor: Refactored typing to minize changes

* refactor: Refactored typing cast

* fix: Fixed module list typing
@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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants