提交 7815cdff 编写于 作者: L Luo Tao

use clone method to flush in forth

上级 3f320c13
...@@ -93,7 +93,10 @@ class InferenceTranspiler: ...@@ -93,7 +93,10 @@ class InferenceTranspiler:
self._adjust_input() self._adjust_input()
self._remove_unused_var() self._remove_unused_var()
return program # TODO(luotao): use clone() method to flush the program.desc in force,
# since some large program.desc will not be flushed immediately.
# And a better solution will be considered later.
return program.clone()
# ====================== private transpiler functions ===================== # ====================== private transpiler functions =====================
def _insert_bias_op(self, index, current_op, bn_op): def _insert_bias_op(self, index, current_op, bn_op):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册