未验证 提交 1d7ce0eb 编写于 作者: H Hui Zhang 提交者: GitHub

Merge pull request #1060 from Jackwaterveg/fix_bug

fix the load checkpoint
...@@ -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.
先完成此消息的编辑!
想要评论请 注册