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 number of features in FrozenBatchNorm2d __repr__ (#2168) #2431

Closed
wants to merge 2 commits into from

Conversation

fmassa
Copy link
Member

@fmassa fmassa commented Jul 8, 2020

  • feat: Added number of features in FrozenBatchNorm2d repr

While BatchNorm layers have extensive information in their repr, FrozenBatchNorm2d has one

  • refactor: Refactored FrozenBatchNorm2d repr

  • test: Added unittest for FrozenBatchNorm2d repr

  • style: Removed blank lines in test_ops

  • refactor: Avoids creating an extra attribute for repr

  • style: Switched repr to f-string

Since support of Python version ealier than 3.6 have been dropped, f-string can be used.

  • fix: Fixed typo in repr

  • style: Switched unittest .format to f-string

* feat: Added number of features in FrozenBatchNorm2d repr

While BatchNorm layers have extensive information in their repr, FrozenBatchNorm2d has one

* refactor: Refactored FrozenBatchNorm2d __repr__

* test: Added unittest for FrozenBatchNorm2d __repr__

* style: Removed blank lines in test_ops

* refactor: Avoids creating an extra attribute for __repr__

* style: Switched __repr__ to f-string

Since support of Python version ealier than 3.6 have been dropped, f-string can be used.

* fix: Fixed typo in __repr__

* style: Switched unittest .format to f-string
Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@fmassa has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@fmassa has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Jul 9, 2020
Summary:
* feat: Added number of features in FrozenBatchNorm2d repr

While BatchNorm layers have extensive information in their repr, FrozenBatchNorm2d has one

* refactor: Refactored FrozenBatchNorm2d __repr__

* test: Added unittest for FrozenBatchNorm2d __repr__

* style: Removed blank lines in test_ops

* refactor: Avoids creating an extra attribute for __repr__

* style: Switched __repr__ to f-string

Since support of Python version ealier than 3.6 have been dropped, f-string can be used.

* fix: Fixed typo in __repr__

* style: Switched unittest .format to f-string

Pull Request resolved: #2431

Reviewed By: zhangguanheng66

Differential Revision: D22437793

Pulled By: fmassa

fbshipit-source-id: 76fd6a42f0b6cabe47c96fcb5a343fe580a0005e
@fmassa
Copy link
Member Author

fmassa commented Jul 10, 2020

Merged in 3e14f2a

@fmassa fmassa closed this Jul 10, 2020
@fmassa fmassa deleted the import_5db8998a branch July 10, 2020 08:20
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.

None yet

3 participants