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

Function GetTensorName

tensorflow/lite/profiling/profile_summarizer.cc:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32std::string GetTensorName(const tflite::Interpreter& interpreter,
33 int tensor_index) {
34 const auto tensor = interpreter.tensor(tensor_index);
35 if (tensor == nullptr || tensor->name == nullptr) {
36 return "Unknown";
37 }
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;

Callers 1

GetTensorNamesFunction · 0.70

Calls 1

tensorMethod · 0.45

Tested by

no test coverage detected