Skip to content

Commit 6c0356e

Browse files
author
chengduo
authored
Merge pull request #10119 from chengduoZH/rollback_delay_op
Enable delay op feature
2 parents d15b264 + f5b4ac6 commit 6c0356e

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)