Use realloc for histogram cache and expose the cache limit. (#9455)
This commit is contained in:
@@ -59,7 +59,7 @@ class TestPartitionBasedSplit : public ::testing::Test {
|
||||
cuts_.min_vals_.Resize(1);
|
||||
|
||||
HistMakerTrainParam hist_param;
|
||||
hist_.Reset(cuts_.TotalBins(), hist_param.internal_max_cached_hist_node);
|
||||
hist_.Reset(cuts_.TotalBins(), hist_param.max_cached_hist_node);
|
||||
hist_.AllocateHistograms({0});
|
||||
auto node_hist = hist_[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user