MCPcopy Create free account
hub / github.com/dmlc/xgboost / Commit

Method Commit

src/data/sparse_page_source.cc:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14namespace xgboost::data {
15void Cache::Commit() {
16 if (!this->written) {
17 std::partial_sum(this->offset.begin(), this->offset.end(), this->offset.begin());
18 this->written = true;
19 }
20}
21
22void TryDeleteCacheFile(const std::string& file) {
23 // Don't throw, this is called in a destructor.

Callers 2

EndIterMethod · 0.80
EndIterMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected