Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bili2002 committed Jan 19, 2024
1 parent a9e3d41 commit dbcbeaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onnxruntime/core/providers/cpu/ml/tree_ensemble_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ Status TreeEnsembleCommon<InputType, ThresholdType, OutputType>::Init(
return nodes_[left.second].feature_id < nodes_[right.second].feature_id;
});

updated_mapping.fill(0);
for (auto& curr : updated_mapping) {
curr = 0;
}
nodes_.clear();
nodes_.reserve(limit);

Expand Down

0 comments on commit dbcbeaf

Please sign in to comment.