MCPcopy Create free account
hub / github.com/Samsung/ONE / load

Method load

compiler/luci-interpreter/src/loader/ModuleLoader.cpp:33–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33void 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

Callers 3

importVerifyModuleMethod · 0.45
ReadModuleFunction · 0.45
InterpreterMethod · 0.45

Calls 8

loadTensorsMethod · 0.80
loadOperatorsMethod · 0.80
sizeMethod · 0.45
emplaceMethod · 0.45
graphMethod · 0.45
addGraphMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected