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

Method append

src/util/shared_array_inl.h:251–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249
250template <typename V>
251void SArray<V>::append(const SArray<V>& arr) {
252 if (arr.empty()) return;
253 auto orig_size = size_;
254 resize(size_ + arr.size());
255 memcpy(data_+orig_size, arr.data(), arr.size()*sizeof(V));
256}
257
258} // namespace PS
259

Callers 6

indexMethod · 0.80
runMethod · 0.80
readToStringMethod · 0.80
upSchedulerFunction · 0.80
upWorkerFunction · 0.80
upServerFunction · 0.80

Calls 3

dataMethod · 0.80
emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected