diff --git a/onnxruntime/core/providers/cpu/ml/tree_ensemble_common.h b/onnxruntime/core/providers/cpu/ml/tree_ensemble_common.h index 986b16eb0c841..5f43c99119f89 100644 --- a/onnxruntime/core/providers/cpu/ml/tree_ensemble_common.h +++ b/onnxruntime/core/providers/cpu/ml/tree_ensemble_common.h @@ -295,7 +295,9 @@ Status TreeEnsembleCommon::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);