Dmatrix refactor stage 2 (#3395)
* DMatrix refactor 2 * Remove buffered rowset usage where possible * Transition to c++11 style iterators for row access * Transition column iterators to C++ 11
This commit is contained in:
@@ -32,7 +32,7 @@ TEST(cpu_predictor, Test) {
|
||||
}
|
||||
|
||||
// Test predict instance
|
||||
auto batch = (*dmat)->RowIterator()->Value();
|
||||
auto &batch = *(*dmat)->GetRowBatches().begin();
|
||||
for (int i = 0; i < batch.Size(); i++) {
|
||||
std::vector<float> instance_out_predictions;
|
||||
cpu_predictor->PredictInstance(batch[i], &instance_out_predictions, model);
|
||||
|
||||
@@ -45,7 +45,7 @@ TEST(gpu_predictor, Test) {
|
||||
abs_tolerance);
|
||||
}
|
||||
// Test predict instance
|
||||
auto batch = (*dmat)->RowIterator()->Value();
|
||||
const auto &batch = *(*dmat)->GetRowBatches().begin();
|
||||
for (int i = 0; i < batch.Size(); i++) {
|
||||
std::vector<float> gpu_instance_out_predictions;
|
||||
std::vector<float> cpu_instance_out_predictions;
|
||||
|
||||
Reference in New Issue
Block a user