提交 192f9a5a 编写于 作者: T tangwei12

bug fix

上级 d96b4427
......@@ -585,9 +585,9 @@ def _write_success(dirname):
:param dirname
"""
success_file = os.path.join(dirname, SUCCESS_MARK_FILENAME)
with open(success_file, 'a'):
with open(success_file, 'a') as f:
now = time.ctime()
success_file.write(now)
f.write(now)
def _get_lastest_checkpoint_dir(checkpoint_dir):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册