Align device id in predict transform with predictor. (#6662)
This commit is contained in:
@@ -74,7 +74,7 @@ class HingeObj : public ObjFunction {
|
||||
_preds[_idx] = _preds[_idx] > 0.0 ? 1.0 : 0.0;
|
||||
},
|
||||
common::Range{0, static_cast<int64_t>(io_preds->Size()), 1},
|
||||
tparam_->gpu_id)
|
||||
io_preds->DeviceIdx())
|
||||
.Eval(io_preds);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user