Quick fix for clang-tidy error. (#10641)

This commit is contained in:
Jiaming Yuan 2024-07-26 18:21:16 +08:00 committed by GitHub
parent 7720272870
commit 449be7a402
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,9 +145,10 @@ class CommonRowPartitioner {
} }
/* Making GHistIndexMatrix_t a templete parameter allows reuse this function for sycl-plugin */ /* Making GHistIndexMatrix_t a templete parameter allows reuse this function for sycl-plugin */
template <typename ExpandEntry, typename GHistIndexMatrix_t> template <typename ExpandEntry, typename GHistIndexMatrixT>
static void FindSplitConditions(const std::vector<ExpandEntry>& nodes, const RegTree& tree, static void FindSplitConditions(const std::vector<ExpandEntry>& nodes, const RegTree& tree,
const GHistIndexMatrix_t& gmat, std::vector<int32_t>* split_conditions) { GHistIndexMatrixT const& gmat,
std::vector<int32_t>* split_conditions) {
auto const& ptrs = gmat.cut.Ptrs(); auto const& ptrs = gmat.cut.Ptrs();
auto const& vals = gmat.cut.Values(); auto const& vals = gmat.cut.Values();