Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Implement config validation to find unused keys #665

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mannatsingh
Copy link
Contributor

Summary:
Implement a ClassyMap type which supports tracking reads and freezing the map (the latter is unused currently).

Added it to ClassificationTask to catch cases where we don't use any keys passed by users.

This will not catch all instances, like when some components do a deepcopy - we assume all the keys and sub-keys are read in such a situation

Differential Revision: D25321360

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Dec 4, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D25321360

mannatsingh added a commit to mannatsingh/ClassyVision that referenced this pull request Jan 23, 2021
Summary:
Pull Request resolved: facebookresearch#665

Implement a `ClassyConfigDict` type which supports tracking reads and freezing the map (the latter is unused currently).

Added it to `build_task` to catch cases where we don't use any keys passed by users.

This will not catch all instances, like when some components do a deepcopy - we assume all the keys and sub-keys are read in such a situation

Differential Revision: D25321360

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

This pull request was exported from Phabricator. Differential Revision: D25321360

mannatsingh added a commit to mannatsingh/ClassyVision that referenced this pull request Jan 23, 2021
Summary:
Pull Request resolved: facebookresearch#665

Implement a `ClassyConfigDict` type which supports tracking reads and freezing the map (the latter is unused currently).

Added it to `build_task` to catch cases where we don't use any keys passed by users.

This will not catch all instances, like when some components do a deepcopy - we assume all the keys and sub-keys are read in such a situation

Differential Revision: D25321360

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

This pull request was exported from Phabricator. Differential Revision: D25321360

mannatsingh added a commit to mannatsingh/ClassyVision that referenced this pull request Jan 23, 2021
Summary:
Pull Request resolved: facebookresearch#665

Implement a `ClassyConfigDict` type which supports tracking reads and freezing the map (the latter is unused currently).

Added it to `build_task` to catch cases where we don't use any keys passed by users.

This will not catch all instances, like when some components do a deepcopy - we assume all the keys and sub-keys are read in such a situation

Differential Revision: D25321360

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

This pull request was exported from Phabricator. Differential Revision: D25321360

Summary:
Pull Request resolved: facebookresearch#665

Implement a `ClassyConfigDict` type which supports tracking reads and freezing the map (the latter is unused currently).

Added it to `build_task` to catch cases where we don't use any keys passed by users.

This will not catch all instances, like when some components do a deepcopy - we assume all the keys and sub-keys are read in such a situation

Differential Revision: D25321360

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

This pull request was exported from Phabricator. Differential Revision: D25321360

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants