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

Method nnzEle

src/data/slot_reader.cc:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23size_t SlotReader::nnzEle(int slot_id) const {
24 size_t nnz = 0;
25 for (int i = 0; i < info_.slot_size(); ++i) {
26 if (info_.slot(i).id() == slot_id) nnz = info_.slot(i).nnz_ele();
27 }
28 return nnz;
29}
30
31int SlotReader::read(ExampleInfo* info) {
32 CHECK_GT(FLAGS_num_threads, 0);

Callers

nothing calls this directly

Calls 3

slot_sizeMethod · 0.80
nnz_eleMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected