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

Function TRITONTF_TensorString

addons/triton/tensorflow_backend_tf.cc:805–812  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

803}
804
805const char*
806TRITONTF_TensorString(TRITONTF_Tensor* tensor, size_t idx, size_t* length)
807{
808 TensorImpl* t = reinterpret_cast<TensorImpl*>(tensor);
809 const std::string& str = t->String(idx);
810 *length = str.length();
811 return str.c_str();
812}
813
814void
815TRITONTF_TensorSetString(

Callers

nothing calls this directly

Calls 3

c_strMethod · 0.80
StringMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected