Browse Source

!13524 modify log spell error

From: @changzherui
Reviewed-by: @kingxian,@zhoufeng54,@kingxian
Signed-off-by: @kingxian,@kingxian
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
b52f0ced25
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/train/serialization.py

+ 2
- 2
mindspore/train/serialization.py View File

@@ -262,7 +262,7 @@ def load(file_name):
if not isinstance(file_name, str):
raise ValueError("The file name must be string.")
if not os.path.exists(file_name):
raise ValueError("The file is not exist.")
raise ValueError("The file does not exist.")
if not file_name.endswith(".mindir"):
raise ValueError("The MindIR should end with mindir, please input the correct file name.")

@@ -362,7 +362,7 @@ def _check_checkpoint_param(ckpt_file_name, filter_prefix=None):
raise ValueError("The ckpt_file_name must be string.")

if not os.path.exists(ckpt_file_name):
raise ValueError("The checkpoint file is not exist.")
raise ValueError("The checkpoint file does not exist.")

if ckpt_file_name[-5:] != ".ckpt":
raise ValueError("Please input the correct checkpoint file name.")


Loading…
Cancel
Save