cpa.CPA.convert_legacy_save#

classmethod CPA.convert_legacy_save(dir_path, output_dir_path, overwrite=False, prefix=None)#

Converts a legacy saved model (<v0.15.0) to the updated save format.

Parameters:
dir_path str

Path to directory where legacy model is saved.

output_dir_path str

Path to save converted save files.

overwrite bool (default: False)

Overwrite existing data or not. If False and directory already exists at output_dir_path, error will be raised.

prefix str | NoneOptional[str] (default: None)

Prefix of saved file names.

Return type:

None