MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CopyToArray

Function CopyToArray

tensorflow/core/platform/tensor_coding.h:36–38  ·  view source on GitHub ↗

Copy contents of src to dst[0,src.size()-1].

Source from the content-addressed store, hash-verified

34
35// Copy contents of src to dst[0,src.size()-1].
36inline void CopyToArray(const string& src, char* dst) {
37 memcpy(dst, src.data(), src.size());
38}
39
40// Copy subrange [pos:(pos + n)) from src to dst. If pos >= src.size() the
41// result is empty. If pos + n > src.size() the subrange [pos, size()) is

Callers 2

DecodeMethod · 0.85
ValuesFromConstNodeFunction · 0.85

Calls 3

CopyToArrayMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected