Skip to content

Commit f5b4ac6

Browse files
committed
enable delay op feature
1 parent d89a306 commit f5b4ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/framework/details/threaded_ssa_graph_executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ FeedFetchList ThreadedSSAGraphExecutor::Run(
128128
//
129129
// NOTE: DelayedOps have a lower priority. It will be scheduled after all
130130
// ready_ops have been performed.
131-
if (ready_ops.empty() && allow_op_delay_) {
131+
if (ready_ops.empty() && allow_op_delay_ && running_ops_ == 0) {
132132
run_all_ops(delayed_ops);
133133
} else {
134134
run_all_ops(ready_ops);

0 commit comments

Comments
 (0)