mindspore.check_checkpoint

View Source On Gitee
mindspore.check_checkpoint(ckpt_file_name)[source]

Check whether the checkpoint is valid.

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