| 28 | |
| 29 | namespace details { |
| 30 | void LoadTensorsTable(const ::tflite::Model& input_model, |
| 31 | TensorsTable* tensors_table) { |
| 32 | // TODO(aselle): add support to toco for multiple subgraphs. |
| 33 | auto tensors = (*input_model.subgraphs())[0]->tensors(); |
| 34 | if (!tensors) return; |
| 35 | for (const auto* tensor : *tensors) { |
| 36 | tensors_table->push_back(tensor->name()->c_str()); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | void LoadOperatorsTable(const ::tflite::Model& input_model, |
| 41 | OperatorsTable* operators_table) { |