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

Method LoadModel

src/tools/model_server.cc:85–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85bool ModelServer::LoadModel(const std::string& file) {
86 model_.reset(new Model);
87 model_->Init(graph_.get());
88 return model_->Load(file);
89}
90
91bool ModelServer::Predict(const features_t& features, float* prob) const {
92 if (!graph_ || !model_) {

Callers 3

mainFunction · 0.80
InitMethod · 0.80
InitMethod · 0.80

Calls 2

InitMethod · 0.45
LoadMethod · 0.45

Tested by

no test coverage detected