Upgrade gputreeshap. (#6099)
* Upgrade gputreeshap. Co-authored-by: Rory Mitchell <r.a.mitchell.nz@gmail.com>
This commit is contained in:
parent
1453bee3e7
commit
c6f2b8c841
@ -1 +1 @@
|
|||||||
Subproject commit 1de23c95ff07d086db02837fb4a746b6924abbd5
|
Subproject commit 3fd8bb118ffc8516f86417253aacdae1531977f4
|
||||||
@ -30,6 +30,7 @@ struct SparsePageView {
|
|||||||
common::Span<const bst_row_t> d_row_ptr;
|
common::Span<const bst_row_t> d_row_ptr;
|
||||||
bst_feature_t num_features;
|
bst_feature_t num_features;
|
||||||
|
|
||||||
|
SparsePageView() = default;
|
||||||
XGBOOST_DEVICE SparsePageView(common::Span<const Entry> data,
|
XGBOOST_DEVICE SparsePageView(common::Span<const Entry> data,
|
||||||
common::Span<const bst_row_t> row_ptr,
|
common::Span<const bst_row_t> row_ptr,
|
||||||
bst_feature_t num_features)
|
bst_feature_t num_features)
|
||||||
@ -562,6 +563,7 @@ class GPUPredictor : public xgboost::Predictor {
|
|||||||
<< " approximate is not implemented in GPU Predictor.";
|
<< " approximate is not implemented in GPU Predictor.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dh::safe_cuda(cudaSetDevice(generic_param_->gpu_id));
|
||||||
uint32_t real_ntree_limit =
|
uint32_t real_ntree_limit =
|
||||||
ntree_limit * model.learner_model_param->num_output_group;
|
ntree_limit * model.learner_model_param->num_output_group;
|
||||||
if (real_ntree_limit == 0 || real_ntree_limit > model.trees.size()) {
|
if (real_ntree_limit == 0 || real_ntree_limit > model.trees.size()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user