Skip to content

Commit c4c6205

Browse files
committed
fix gc bug
test=develop
1 parent 679a4c2 commit c4c6205

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)