diff --git a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc index 41034e9f0598854102fdc439bd586aa6f837991a..13789667b82d41e8850804d8042660eac0152a58 100644 --- a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc +++ b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc @@ -170,6 +170,7 @@ FeedFetchList ThreadedSSAGraphExecutor::Run( // Wait FetchOps. if (!fetch_ops.empty()) { + fetch_ops.clear(); sync_computation(); }