| 30 | }; |
| 31 | |
| 32 | std::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 | } |
| 40 | std::vector<std::string> GetTensorNames(const tflite::Interpreter& interpreter, |
| 41 | const TfLiteIntArray* tensor_indices) { |
| 42 | std::vector<std::string> tensors; |
no test coverage detected