MCPcopy Create free account
hub / github.com/dmlc/parameter_server / init

Method init

src/data/slot_reader.cc:11–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9DECLARE_bool(verbose);
10
11void SlotReader::init(const DataConfig& data, const DataConfig& cache) {
12 // if (cache.file_size()) dump_to_disk_ = true;
13 CHECK(cache.file_size());
14 cache_ = cache.file(0);
15 data_ = data;
16}
17
18string SlotReader::cacheName(const DataConfig& data, int slot_id) const {
19 CHECK_GT(data.file_size(), 0);

Callers 1

readOneFileMethod · 0.45

Calls 1

file_sizeMethod · 0.80

Tested by

no test coverage detected