Configurable.load_config

classmethod Configurable.load_config(path)[source]

Loads the module by reading the configuration. Parameters are initialized randomly as if the module would be initialized from scratch. This method should not be called directly. It is called as part of load().

Parameters

path (Path) -- The directory which contains the config.json to load.

Return type

TypeVar(M, bound= ConfigurableModule)

Returns

The loaded model.

Attention

This method must only be called if the module is initializable solely from a configuration.