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

Method setZero

src/util/shared_array.h:108–108  ·  view source on GitHub ↗

set all entries into 0

Source from the content-addressed store, hash-verified

106 void setValue(V value);
107 // set all entries into 0
108 void setZero() { memset(data_, 0, size_*sizeof(V)); }
109 // set values according to *cf*
110 void setValue(const ParameterInitConfig& cf);
111

Callers 7

TESTFunction · 0.80
SetUpMethod · 0.80
runMethod · 0.80
parallelOrderedMatchFunction · 0.80
resizeMethod · 0.80
alterStorageMethod · 0.80
resizeMethod · 0.80

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.64
SetUpMethod · 0.64