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

Function FormatArraysList

tensorflow/lite/toco/tooling_util.cc:302–320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302string FormatArraysList(const Model& model, const std::vector<string>& list) {
303 if (list.empty()) {
304 return "[]";
305 }
306 string result = "";
307 if (list.size() > 1) {
308 result += "[ ";
309 }
310 for (std::size_t i = 0; i < list.size(); i++) {
311 if (i > 0) {
312 result += ", ";
313 }
314 result += list[i];
315 }
316 if (list.size() > 1) {
317 result += " ]";
318 }
319 return result;
320}
321
322const char* OperatorTypeName(OperatorType type) {
323 switch (type) {

Callers 2

LogDumpFunction · 0.85
FixOperatorOrderingFunction · 0.85

Calls 2

emptyMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected