upgrade_config#

upgrade_config(config_dict: dict | list[dict]) 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 (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:

dict | list[dict]