Skip to content

Commit

Permalink
See if we can log what the type for proxy is
Browse files Browse the repository at this point in the history
  • Loading branch information
yoquinjo committed Mar 23, 2023
1 parent 74c4376 commit eb4cd9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/c_api/c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1034,9 +1034,8 @@ XGB_DLL int XGBoosterInplacePredict(BoosterHandle handle,
} else {
p_m = *static_cast<std::shared_ptr<DMatrix> *>(dMatrixHandle);
}
std::cout << p_m;
auto proxy = dynamic_cast<data::DMatrixProxy *>(p_m.get());
CHECK(proxy) << "Invalid input type for inplace predict.";
CHECK(proxy) << "Invalid input type for inplace predict. :" << typeid(proxy).name();
auto *learner = static_cast<xgboost::Learner *>(handle);
auto iteration_end = GetIterationFromTreeLimit(ntree_limit, learner);
InplacePredictImplCore(p_m, learner, (xgboost::PredictionType)0, missing, num_rows, num_features,
Expand Down

0 comments on commit eb4cd9a

Please sign in to comment.