Fix error message. (#6176)
This commit is contained in:
parent
dda9e1e487
commit
52c0b3f100
@ -559,8 +559,7 @@ class GPUPredictor : public xgboost::Predictor {
|
|||||||
bool approximate, int condition,
|
bool approximate, int condition,
|
||||||
unsigned condition_feature) override {
|
unsigned condition_feature) override {
|
||||||
if (approximate) {
|
if (approximate) {
|
||||||
LOG(FATAL) << "[Internal error]: " << __func__
|
LOG(FATAL) << "Approximated contribution is not implemented in GPU Predictor.";
|
||||||
<< " approximate is not implemented in GPU Predictor.";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dh::safe_cuda(cudaSetDevice(generic_param_->gpu_id));
|
dh::safe_cuda(cudaSetDevice(generic_param_->gpu_id));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user