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

Function GetTensorNames

tensorflow/lite/profiling/profile_summarizer.cc:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 return tensor->name;
39}
40std::vector<std::string> GetTensorNames(const tflite::Interpreter& interpreter,
41 const TfLiteIntArray* tensor_indices) {
42 std::vector<std::string> tensors;
43 tensors.reserve(tensor_indices->size);
44 for (int i = 0; i < tensor_indices->size; i++) {
45 tensors.push_back(GetTensorName(interpreter, tensor_indices->data[i]));
46 }
47 return tensors;
48}
49
50std::string ToString(const std::vector<std::string>& str_vector) {
51 std::stringstream stream;

Callers 1

GetOperatorDetailsFunction · 0.85

Calls 3

GetTensorNameFunction · 0.70
reserveMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected