facebookresearch / ClassyVision

An end-to-end PyTorch framework for image and video classification
https://classyvision.ai
MIT License
1.59k stars 278 forks source link

Implement config validation to find unused keys #665

Open mannatsingh opened 3 years ago

mannatsingh commented 3 years ago

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 commented 3 years ago

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

facebook-github-bot commented 3 years ago

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

facebook-github-bot commented 3 years ago

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

facebook-github-bot commented 3 years ago

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

facebook-github-bot commented 3 years ago

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