From f5b4ac6e506c2edf57bfb083e4bb2fdd428be826 Mon Sep 17 00:00:00 2001 From: chengduoZH Date: Sun, 22 Apr 2018 17:11:22 +0800 Subject: [PATCH] enable delay op feature --- paddle/fluid/framework/details/threaded_ssa_graph_executor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc index 14e75e7b7b5..3b7d6160730 100644 --- a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc +++ b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc @@ -128,7 +128,7 @@ FeedFetchList ThreadedSSAGraphExecutor::Run( // // NOTE: DelayedOps have a lower priority. It will be scheduled after all // ready_ops have been performed. - if (ready_ops.empty() && allow_op_delay_) { + if (ready_ops.empty() && allow_op_delay_ && running_ops_ == 0) { run_all_ops(delayed_ops); } else { run_all_ops(ready_ops); -- GitLab