Merge pull request #16496 from sneaxiy/fix_gc_bug

Fix gc bug
move-code
Zeng Jinle 6 years ago committed by GitHub
commit 2aa18e2bda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -335,6 +335,7 @@ std::unique_ptr<ir::Graph> ReferenceCountPass::ApplyImpl(
var_name);
ref_cnts[i].emplace(var_name, result.size());
last_live_ops_of_vars[i].emplace(var_name, std::move(result));
break;
}
// Seldomly, all preceding trying failed.

Loading…
Cancel
Save