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

Method clear

src/data/info_parser.cc:4–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2namespace PS {
3
4void InfoParser::clear() {
5 for (int i = 0; i < kSlotIDmax; ++i) slot_info_[i].Clear();
6 info_.Clear();
7 num_ex_ = 0;
8}
9
10bool InfoParser::add(const Example& ex) {
11 for (int i = 0; i < ex.slot_size(); ++i) {

Callers 5

fillMatricesMethod · 0.45
readMatricesMethod · 0.45
clear_homeMethod · 0.45
clear_ugiMethod · 0.45
clear_namenodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected