Skip to content

Commit

Permalink
fix clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyueXu77 committed May 10, 2024
1 parent 090cb1a commit da97000
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tree/hist/evaluate_splits.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,9 @@ class HistEvaluator {
// and workers can recover the actual split value with the split index
// Note that after the recovery, different workers will hold different
// split_value: real value for feature owner, NaN for others
for (std::size_t nidx_in_set = 0; nidx_in_set < entries.size(); ++nidx_in_set) {
auto cut_index = entries[nidx_in_set].split.split_value;
entries[nidx_in_set].split.split_value = cut.Values()[cut_index];
for (auto & entry : entries) {
auto cut_index = entry.split.split_value;
entry.split.split_value = cut.Values()[cut_index];
}
}
}
Expand Down

0 comments on commit da97000

Please sign in to comment.