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

Added annotation typing to inception #2857

Merged
merged 8 commits into from
Oct 23, 2020
Merged

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.inception 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 #2857 into master will increase coverage by 0.00%.
The diff coverage is 66.66%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2857   +/-   ##
=======================================
  Coverage   73.36%   73.37%           
=======================================
  Files          99       99           
  Lines        8787     8788    +1     
  Branches     1387     1387           
=======================================
+ Hits         6447     6448    +1     
  Misses       1916     1916           
  Partials      424      424           
Impacted Files Coverage Δ
torchvision/models/inception.py 84.69% <66.66%> (+0.05%) ⬆️

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...064f948. Read the comment docs.

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.

Some minor nitpicks. Otherwise LGTM.

torchvision/models/inception.py Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
torchvision/models/inception.py Outdated Show resolved Hide resolved
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 8263c8a into pytorch:master Oct 23, 2020
@frgfm frgfm deleted the inception-typing branch October 23, 2020 10:28
bryant1410 pushed a commit to bryant1410/vision-1 that referenced this pull request Nov 22, 2020
* style: Added annotation typing for inception

* refactor: Moved factory function after class definition

* style: Changed attribute setting for type hinting

* refactor: Removed un-necessary import

* fix: Fixed typing in constructors

* fix: Fixed kwargs typing

* style: Fixed lint

* refactor: Moved helpers function back and quote typed it
vfdev-5 pushed a commit to Quansight/vision that referenced this pull request Dec 4, 2020
* style: Added annotation typing for inception

* refactor: Moved factory function after class definition

* style: Changed attribute setting for type hinting

* refactor: Removed un-necessary import

* fix: Fixed typing in constructors

* fix: Fixed kwargs typing

* style: Fixed lint

* refactor: Moved helpers function back and quote typed it
@frgfm frgfm mentioned this pull request Oct 26, 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