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

Method clear

src/parameter/kv_vector.h:23–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21 SArray<K>& key(int channel = 0) { Lock l(mu_); return key_[channel]; }
22 SArray<V>& value(int channel = 0) { Lock l(mu_); return val_[channel]; }
23 void clear(int channel = 0) { Lock l(mu_); key_.erase(channel); val_.erase(channel); }
24
25 // find the local positions of a global key range
26 SizeR find(int channel, const Range<K>& key_range) {

Callers 4

setValueMethod · 0.45
clearTailFilterMethod · 0.45
clear_file_nameMethod · 0.45
clear_senderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected