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

Function TF_StringDecode

tensorflow/c/tf_tensor.cc:242–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242size_t TF_StringDecode(const char* src, size_t src_len, const char** dst,
243 size_t* dst_len, TF_Status* status) {
244 Set_TF_Status_from_Status(status,
245 TF_StringDecode_Impl(src, src_len, dst, dst_len));
246 if (TF_GetCode(status) != TF_OK) return 0;
247 return static_cast<size_t>(*dst - src) + *dst_len;
248}
249
250size_t TF_StringEncodedSize(size_t len) {
251 return static_cast<size_t>(tensorflow::core::VarintLength(len)) + len;

Callers 2

Calls 3

TF_StringDecode_ImplFunction · 0.85
TF_GetCodeFunction · 0.85

Tested by

no test coverage detected