| 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; |
| 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 | |
| 50 | std::string ToString(const std::vector<std::string>& str_vector) { |
| 51 | std::stringstream stream; |
no test coverage detected