Skip to content

Commit

Permalink
Merge pull request PaddlePaddle#10119 from chengduoZH/rollback_delay_op
Browse files Browse the repository at this point in the history
Enable delay op feature
  • Loading branch information
chengduo authored Apr 23, 2018
2 parents d15b264 + f5b4ac6 commit 6c0356e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c0356e

Please sign in to comment.