model_registry
Description
Module to handle model registering. This is a trick to flexibly exchange models via Sacred named configs without sacred saving the complete model to the config file. Use this for model configs if the config shall stay readable, must not get too large, and your torch model anyways is not about to change.
Usage:
register functions returning a model via
register_model_builder()
build a model by key using
get_model()
Functions
|
Return the result of a model builder previously registered via |
|
Register a model builder to later be callable via |
Return a list of valid model builder keys. |