Skip to content

Commit eb4cd9a

Browse files
committed
See if we can log what the type for proxy is
1 parent 74c4376 commit eb4cd9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/c_api/c_api.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,9 +1034,8 @@ XGB_DLL int XGBoosterInplacePredict(BoosterHandle handle,
10341034
} else {
10351035
p_m = *static_cast<std::shared_ptr<DMatrix> *>(dMatrixHandle);
10361036
}
1037-
std::cout << p_m;
10381037
auto proxy = dynamic_cast<data::DMatrixProxy *>(p_m.get());
1039-
CHECK(proxy) << "Invalid input type for inplace predict.";
1038+
CHECK(proxy) << "Invalid input type for inplace predict. :" << typeid(proxy).name();
10401039
auto *learner = static_cast<xgboost::Learner *>(handle);
10411040
auto iteration_end = GetIterationFromTreeLimit(ntree_limit, learner);
10421041
InplacePredictImplCore(p_m, learner, (xgboost::PredictionType)0, missing, num_rows, num_features,

0 commit comments

Comments
 (0)