Skip to content

Commit 1076e85

Browse files
committed
refine logic
1 parent 8291b91 commit 1076e85

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

paddle/fluid/framework/details/ssa_graph_builder.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,11 @@ bool SSAGraphBuilder::IsValidGraph(const SSAGraph *graph) const {
135135

136136
while (!pending_vars.empty()) {
137137
run_all_ops(ready_ops);
138+
138139
if (ready_vars.empty()) {
139140
return false;
140141
}
142+
141143
for (auto ready_var : ready_vars) {
142144
pending_vars.erase(ready_var);
143145
for (auto *op : ready_var->pending_ops_) {

0 commit comments

Comments
 (0)