mindspore.check_checkpoint
- mindspore.check_checkpoint(ckpt_file_name)[source]
Check whether the checkpoint is valid.
Note
The interface is deprecated from version 2.5 and will be removed in a future version.
- Parameters
ckpt_file_name (str) – Checkpoint file name.
- Returns
bool, whether the checkpoint is valid.
Examples
>>> import mindspore as ms >>> ckpt_file_name = "./checkpoint/LeNet5-1_32.ckpt" >>> check_result = ms.check_checkpoint(ckpt_file_name) >>> print(check_result) True