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

Function JoinDefault

tensorflow/lite/testing/join.h:29–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27// Join a list of data with default precision separated by delimiter.
28template <typename T>
29string JoinDefault(T* data, size_t len, const string& delimiter) {
30 if (len == 0 || data == nullptr) {
31 return "";
32 }
33 std::stringstream result;
34 result << data[0];
35 for (int i = 1; i < len; i++) {
36 result << delimiter << data[i];
37 }
38 return result.str();
39}
40
41// Join a list of data with fixed precision separated by delimiter.
42template <typename T>

Callers 3

TESTFunction · 0.85
ReadOutputMethod · 0.85
GenerateInputMethod · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68