diff --git a/python/paddle/fluid/inference_transpiler.py b/python/paddle/fluid/inference_transpiler.py index 194f7adf46ef8853d2eea8cf6cd787fd95e5081c..a215b98c612ca5ac6623a514c21717ae3fd78f09 100644 --- a/python/paddle/fluid/inference_transpiler.py +++ b/python/paddle/fluid/inference_transpiler.py @@ -93,7 +93,10 @@ class InferenceTranspiler: self._adjust_input() 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 ===================== def _insert_bias_op(self, index, current_op, bn_op):