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

Function ithFile

src/data/common.cc:13–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11DECLARE_bool(verbose);
12
13DataConfig ithFile(const DataConfig& conf, int i, const string& suffix) {
14 CHECK_GE(i, 0); CHECK_LT(i, conf.file_size());
15 auto f = conf; f.clear_file(); f.add_file(conf.file(i) + suffix);
16 return f;
17}
18
19MatrixInfo readMatrixInfo(
20 const ExampleInfo& info, int slot_id, int sizeof_idx, int sizeof_val) {

Callers 5

openNextFileMethod · 0.85
readMethod · 0.85
indexMethod · 0.85
offsetMethod · 0.85
valueMethod · 0.85

Calls 3

file_sizeMethod · 0.80
clear_fileMethod · 0.80
add_fileMethod · 0.80

Tested by

no test coverage detected