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

Function GetString

tensorflow/lite/string_util.cc:130–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130StringRef GetString(const char* raw_buffer, int string_index) {
131 const int32_t* offset =
132 GetIntPtr(raw_buffer + sizeof(int32_t) * (string_index + 1));
133 return {
134 raw_buffer + (*offset),
135 (*(offset + 1)) - (*offset),
136 };
137}
138
139StringRef GetString(const TfLiteTensor* tensor, int string_index) {
140 return GetString(tensor->data.raw, string_index);

Callers 15

TESTFunction · 0.85
TESTFunction · 0.85
GetTensorMethod · 0.85
GetStringValuesMethod · 0.85
GetStringOutputMethod · 0.85
GetStringOutputMethod · 0.85
EvalFunction · 0.85
EvalFunction · 0.85
GatherStringsFunction · 0.85
GetOutputMethod · 0.85
ExtractVectorMethod · 0.85

Calls 1

GetIntPtrFunction · 0.70

Tested by 8

TESTFunction · 0.68
TESTFunction · 0.68
GetStringValuesMethod · 0.68
GetStringOutputMethod · 0.68
GetStringOutputMethod · 0.68
GetOutputMethod · 0.68
ExtractVectorMethod · 0.68
GetStringOutputMethod · 0.68