Skip to content

Commit 2aa18e2

Browse files
authored
Merge pull request #16496 from sneaxiy/fix_gc_bug
Fix gc bug
2 parents eb83abe + c4c6205 commit 2aa18e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/framework/details/reference_count_pass.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ std::unique_ptr<ir::Graph> ReferenceCountPass::ApplyImpl(
335335
var_name);
336336
ref_cnts[i].emplace(var_name, result.size());
337337
last_live_ops_of_vars[i].emplace(var_name, std::move(result));
338+
break;
338339
}
339340

340341
// Seldomly, all preceding trying failed.

0 commit comments

Comments
 (0)