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

Method EndIter

src/data/ellpack_page_source.h:369–378  ·  view source on GitHub ↗

Need a specialized end iter as we can concatenate pages.

Source from the content-addressed store, hash-verified

367 void Fetch() final;
368 // Need a specialized end iter as we can concatenate pages.
369 void EndIter() final {
370 if (this->cache_info_->written) {
371 CHECK_EQ(this->Iter(), this->cache_info_->Size());
372 } else {
373 CHECK_LE(this->cache_info_->Size(), this->ext_info_.n_batches);
374 }
375 this->cache_info_->Commit();
376 CHECK_GE(this->count_, 1);
377 this->count_ = 0;
378 }
379};
380
381// Cache to host

Callers

nothing calls this directly

Calls 3

CommitMethod · 0.80
IterMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected