未验证 提交 9ec41c84 编写于 作者: N niuliling123 提交者: GitHub

Fix a bug when O2 save checkpoint (#745)

上级 97646db9
......@@ -53,8 +53,7 @@ def save(state_dicts, file_name):
else:
final_dict[k] = v
with open(file_name, 'wb') as f:
pickle.dump(final_dict, f, protocol=2)
paddle.save(final_dict, file_name)
def load(file_name):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册