Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions paddle/fluid/framework/new_exec.h
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,17 @@ class InterpreterCore {
}
vec_instruction_[i].next_instruction_.direct_run_ = filter_next;

// checkout ouput
for (auto& item : vec_instruction_[i].output_index_) {
for (auto id : item.second) {
if (input_var2op_info_[id].size() == 0) {
// output var not be used by any kernel
vec_instruction_[i].gc_check_var_list.push_back(id);
global_scope.vec_meta_info_[id].var_ref_count_++;
}
}
}

for (auto inst_id : filter_next) {
dependecy_count_[inst_id]++;
}
Expand Down