提交 d0bf506f 编写于 作者: H huangyuxin

fix the load checkpoint

上级 2ea3d67b
...@@ -94,10 +94,7 @@ class Checkpoint(): ...@@ -94,10 +94,7 @@ class Checkpoint():
""" """
configs = {} configs = {}
if len(checkpoint_path) == 0 or checkpoint_path == "None": if checkpoint_path:
checkpoint_path = None
if checkpoint_path is not None:
pass pass
elif checkpoint_dir is not None and record_file is not None: elif checkpoint_dir is not None and record_file is not None:
# load checkpint from record file # load checkpint from record file
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册