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

Switch transforms to .from_config idiom #18

Closed
wants to merge 1 commit into from

Conversation

vreis
Copy link
Contributor

@vreis vreis commented Sep 26, 2019

Summary:
I was originally against a ClassyTransform abstraction, but I've come around.
All other Classy things implement a from_config method, so we need a
ClassyTransform as well. That gives us the flexibility of implementing
transforms where the dictionary can't be mapped directly to arguments in the
constructor.

Differential Revision: D17578366

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 26, 2019
Summary:
Pull Request resolved: facebookresearch/ClassyVision#18

I was originally against a ClassyTransform abstraction, but I've come around.
All other Classy things implement a from_config method, so we need a
ClassyTransform as well. That gives us the flexibility of implementing
transforms where the dictionary can't be mapped directly to arguments in the
constructor.

Differential Revision: D17578366

fbshipit-source-id: ef339ae297b362057ae4143557381d8a931ccd0b
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 48a8f25.

facebook-github-bot pushed a commit that referenced this pull request Oct 28, 2019
Summary:
Pull Request resolved: fairinternal/ClassyVision#18

Pull Request resolved: #128

Meter state dict abstraction serves almost same purpose as get_classy_state / set_classy_state. Cleaning this up before OSS by removing the meter_state_dict calls and moving all logic to get / set classy state calls.

Reviewed By: mannatsingh

Differential Revision: D18162805

fbshipit-source-id: d217eafc85e06b4081288227b2b1cc7a5d9d863b
vaibhava0 pushed a commit to vaibhava0/ClassyVision that referenced this pull request Jan 19, 2021
Summary:
Pull Request resolved: fairinternal/ClassyVision#18

Pull Request resolved: facebookresearch#128

Meter state dict abstraction serves almost same purpose as get_classy_state / set_classy_state. Cleaning this up before OSS by removing the meter_state_dict calls and moving all logic to get / set classy state calls.

Reviewed By: mannatsingh

Differential Revision: D18162805

fbshipit-source-id: d217eafc85e06b4081288227b2b1cc7a5d9d863b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants