提交 a6437859 编写于 作者: L liuwei1031

mark loss as persistable

上级 fb5fa1af
...@@ -179,6 +179,7 @@ def train(args, ...@@ -179,6 +179,7 @@ def train(args,
predicate=if_exist) predicate=if_exist)
if parallel: if parallel:
loss.persistable = True
build_strategy = fluid.BuildStrategy() build_strategy = fluid.BuildStrategy()
build_strategy.enable_inplace = True build_strategy.enable_inplace = True
build_strategy.memory_optimize = True build_strategy.memory_optimize = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册