torchliter.utils
get_object_from_module
get_object_from_module(module_path, object_name)
instantiate_class
instantiate_class(info: Dict)
build_instance_from_dict
build_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_bar
get_progress_bar(itr: int, tot: int, width: int = 25)