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

Method readModule

compiler/circle-mpqsolver/src/MPQSolver.cpp:34–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34std::unique_ptr<luci::Module> MPQSolver::readModule(const std::string &path)
35{
36 luci::ImporterEx importerex;
37 auto module = importerex.importVerifyModule(path);
38 if (module.get() == nullptr)
39 {
40 throw std::runtime_error("Failed to load model");
41 }
42
43 return module;
44}

Callers

nothing calls this directly

Calls 2

importVerifyModuleMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected