From dfb8680018a4b7f34f4585f82ac62815cce5f660 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Tue, 27 Mar 2018 14:39:37 +0800 Subject: [PATCH] Early drop fetch op --- paddle/fluid/framework/details/threaded_ssa_graph_executor.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc index 41034e9f059..13789667b82 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(); } -- GitLab