torchliter.utilsget_object_from_moduleget_object_from_module(module_path, object_name)
instantiate_classinstantiate_class(info: Dict)
build_instance_from_dictbuild_instance_from_dict(
config: Dict,
source_key: str,
default_key: str = 'default_params'
)
Params: config: Dict, config of the instance with keys (‘instance_name_1’, ‘instance_name_2’, default_key)
source_key: str, name of the instance
default_key: str, name of the key of default params in config
get_progress_barget_progress_bar(itr: int, tot: int, width: int = 25)