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

Method cacheName

src/data/slot_reader.cc:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18string SlotReader::cacheName(const DataConfig& data, int slot_id) const {
19 CHECK_GT(data.file_size(), 0);
20 return cache_ + getFilename(data.file(0)) + "_slot_" + std::to_string(slot_id);
21}
22
23size_t SlotReader::nnzEle(int slot_id) const {
24 size_t nnz = 0;

Callers

nothing calls this directly

Calls 2

getFilenameFunction · 0.85
file_sizeMethod · 0.80

Tested by

no test coverage detected