get_model
- hybrid_learning.experimentation.model_registry.model_registry.get_model(model_key, config, layer_infos=None, check_layer_infos=True)[source]
Return the result of a model builder previously registered via
register_model
.- Parameters
- Raises
ValueError – if the built model is no torch model or
layer_infos
is unset whilecheck_layer_infos
isTrue
AssertionError – if
check_layer_infos
and one of the entries inlayer_infos
is not a valid layer identifier of the built model.
- Returns
the built model
- Return type
Module