Fix cpu_predictor categorical feature disaptch (#9256)

This commit is contained in:
ZHAOKAI WANG 2023-06-08 01:24:04 +08:00 committed by GitHub
parent e229692572
commit 84d3fcb7ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,7 @@ void PredictByAllTrees(gbm::GBTreeModel const &model, std::uint32_t const tree_b
} else {
for (std::size_t i = 0; i < block_size; ++i) {
out_predt(predict_offset + i, gid) +=
scalar::PredValueByOneTree<true>(thread_temp[offset + i], tree, cats);
scalar::PredValueByOneTree<false>(thread_temp[offset + i], tree, cats);
}
}
}