Skip to content

Commit

Permalink
Check external memory support for exact tree method. (#7088)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jul 7, 2021
1 parent 615ab2b commit 689eb8f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tree/updater_colmaker.cc
Expand Up @@ -98,6 +98,10 @@ class ColMaker: public TreeUpdater {
LOG(FATAL) << "Updater `grow_colmaker` or `exact` tree method doesn't "
"support distributed training.";
}
if (!dmat->SingleColBlock()) {
LOG(FATAL) << "Updater `grow_colmaker` or `exact` tree method doesn't "
"support external memory training.";
}
this->LazyGetColumnDensity(dmat);
// rescale learning rate according to size of trees
float lr = param_.learning_rate;
Expand Down

0 comments on commit 689eb8f

Please sign in to comment.