-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Cleanup namings of Multi-weights classes and enums #5003
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
Conversation
💊 CI failures summary and remediationsAs of commit ecdea1c (more details on the Dr. CI page):
3 failures not recognized by patterns:
This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM when green, thanks
32a2505
to
aca9b51
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looked at each commit independently, still LGTM :)
aca9b51
to
5d3500e
Compare
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 |
Summary: * Rename classes Weights => WeightsEnum and WeightEntry => Weights. * Make enum values follow the naming convention `_V1`, `_V2` etc * Cleanup the Enum class naming conventions. * Add a test to check naming conventions. Reviewed By: NicolasHug Differential Revision: D32759196 fbshipit-source-id: 5348a432dc439cad21fbb1db507b21edcbeb7ece
Fixes partially #4652
Weights => WeightsEnum
andWeightEntry => Weights
_V1
,_V2
etccapitalized(model_builder_name) + "_Weights"
orcapitalized(model_builder_name) + "_QuantizedWeights"
.cc @datumbox @bjuncek