MCPcopy Create free account
hub / github.com/Tencent/embedx / LoadGraph

Method LoadGraph

src/tools/model_server.cc:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75bool ModelServer::LoadGraph(const std::string& file) {
76 graph_.reset(new Graph);
77 if (!graph_->Load(file)) {
78 return false;
79 }
80 DXCHECK(graph_->target_size() > target_type_);
81 target_name_ = graph_->target(target_type_).name();
82 return true;
83}
84
85bool ModelServer::LoadModel(const std::string& file) {
86 model_.reset(new Model);

Callers 1

mainFunction · 0.80

Calls 1

LoadMethod · 0.45

Tested by

no test coverage detected