| 325 | } |
| 326 | |
| 327 | Status LocalSessionInstance::ReadModelSignature(ModelConfig* model_config) { |
| 328 | auto model_signatures = meta_graph_def_.signature_def(); |
| 329 | for (auto it : model_signatures) { |
| 330 | if (it.first == model_config->signature_name) { |
| 331 | model_signature_ = it; |
| 332 | GenerateJsonSignatureFormat(model_signature_, |
| 333 | model_json_signature_); |
| 334 | InternalGetSignatureInfo(model_signature_, |
| 335 | signature_info_); |
| 336 | signature_hash_value_ = GetHashValue(model_json_signature_); |
| 337 | return Status::OK(); |
| 338 | } |
| 339 | } |
| 340 | return Status(error::Code::INVALID_ARGUMENT, |
| 341 | "Invalid signature name, please check signature_name in model config"); |
| 342 | } |
| 343 | |
| 344 | Status LocalSessionInstance::Predict(Request& req, Response& resp) { |
| 345 | return session_mgr_->LocalPredict(req, resp); |
nothing calls this directly
no test coverage detected