| 31 | } |
| 32 | |
| 33 | void ModuleLoader::load() |
| 34 | { |
| 35 | // Runtime graphs have to be created in advance, because they will be needed during the loading |
| 36 | // process for control flow nodes. |
| 37 | for (size_t i = 0; i < _module->size(); ++i) |
| 38 | { |
| 39 | _graph_to_runtime_graph.emplace(_module->graph(i), _runtime_module->addGraph(_memory_manager)); |
| 40 | } |
| 41 | for (size_t i = 0; i < _module->size(); ++i) |
| 42 | { |
| 43 | const loco::Graph *graph = _module->graph(i); |
| 44 | RuntimeGraph *runtime_graph = _graph_to_runtime_graph.at(graph); |
| 45 | GraphLoader loader(graph, runtime_graph, _runtime_to_ir, _graph_to_runtime_graph, |
| 46 | _node_to_tensor, _memory_manager); |
| 47 | loader.loadTensors(); |
| 48 | loader.initInputOutputTensors(); |
| 49 | loader.loadOperators(); |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | } // namespace luci_interpreter |
no test coverage detected