| 48 | } |
| 49 | |
| 50 | std::string ToString(const std::vector<std::string>& str_vector) { |
| 51 | std::stringstream stream; |
| 52 | stream << "["; |
| 53 | bool first = true; |
| 54 | for (const auto& s : str_vector) { |
| 55 | if (!first) { |
| 56 | stream << ", "; |
| 57 | } else { |
| 58 | first = false; |
| 59 | } |
| 60 | stream << s; |
| 61 | } |
| 62 | stream << "]"; |
| 63 | return stream.str(); |
| 64 | } |
| 65 | |
| 66 | OperatorDetails GetOperatorDetails(const tflite::Interpreter& interpreter, |
| 67 | int node_index) { |