upgrade_config#

upgrade_config(config_dict: Union[dict, List[dict]]) Union[dict, List[dict]][source]#

Upgrade serialized Config(s) to the latest version.

Used to implement backward compatibility of Configs using upgraders stored in the registry.

Parameters

config_dict (Union[dict, List[dict]]) – serialized PipelineConfig(s) which are potentially of a non-current version

Returns

The corresponding serialized PipelineConfig(s) that have been upgraded to the current version.

Return type

Union[dict, List[dict]]