Small cleanup to hist tree method. (#7735)
* Remove special optimization using number of bins. * Remove 1-based index for column sampling. * Remove data layout. * Unify update prediction cache.
This commit is contained in:
@@ -266,6 +266,9 @@ class MemStackAllocator {
|
||||
throw std::bad_alloc{};
|
||||
}
|
||||
}
|
||||
MemStackAllocator(size_t required_size, T init) : MemStackAllocator{required_size} {
|
||||
std::fill_n(ptr_, required_size_, init);
|
||||
}
|
||||
|
||||
~MemStackAllocator() {
|
||||
if (required_size_ > MaxStackSize) {
|
||||
|
||||
Reference in New Issue
Block a user