Skip to content

Added type hints to ResNetForImageClassification#19084

Merged
Rocketknight1 merged 2 commits intohuggingface:mainfrom
kishore-s-15:add-type-hints-resnet-for-image-classification
Sep 19, 2022
Merged

Added type hints to ResNetForImageClassification#19084
Rocketknight1 merged 2 commits intohuggingface:mainfrom
kishore-s-15:add-type-hints-resnet-for-image-classification

Conversation

@kishore-s-15
Copy link
Contributor

@kishore-s-15 kishore-s-15 commented Sep 17, 2022

Based on Issue #16059.

While looking into Issue #16059, I found that the ResNetForImageClassification model's type hints are inconsistent with the docs. Modified it to be consistent with the docs.

@Rocketknight1 Could you kindly check if this is fine?

This is my First PR for the Transformers library. Thanks in advance.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 17, 2022

The documentation is not available anymore as the PR was closed or merged.

Running fix-copies changed the type hints for RegNetForImageClassification in modeling_regnet.py file
Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@Rocketknight1 Rocketknight1 merged commit 6f25d10 into huggingface:main Sep 19, 2022
@kishore-s-15
Copy link
Contributor Author

Thanks @Rocketknight1.

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