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

Method AddString

tensorflow/lite/string_util.cc:33–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31} // namespace
32
33void DynamicBuffer::AddString(const char* str, size_t len) {
34 data_.resize(data_.size() + len);
35 memcpy(data_.data() + offset_.back(), str, len);
36 offset_.push_back(offset_.back() + len);
37}
38
39void DynamicBuffer::AddString(const StringRef& string) {
40 AddString(string.str, string.len);

Callers 15

TESTFunction · 0.80
TESTFunction · 0.80
FillRandomStringFunction · 0.80
CopyFromBufferHandleFunction · 0.80
SetStringValuesMethod · 0.80
MakeLiteTensor<string>Function · 0.80
EvalFunction · 0.80
GatherStringsFunction · 0.80
PopulateStringTensorMethod · 0.80
WriteNMethod · 0.80

Calls 5

resizeMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45
backMethod · 0.45
push_backMethod · 0.45

Tested by 6

TESTFunction · 0.64
TESTFunction · 0.64
SetStringValuesMethod · 0.64
MakeLiteTensor<string>Function · 0.64
PopulateStringTensorMethod · 0.64
TESTFunction · 0.64