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