| 415 | } |
| 416 | |
| 417 | Status ModelSession::Warmup(Request& req, Response& resp, bool local) { |
| 418 | int N = session_group_->GetSessionNum(); |
| 419 | for (int i = 0; i < N; ++i) { |
| 420 | Status s; |
| 421 | if (local) { |
| 422 | s = LocalPredict(req, resp, i); |
| 423 | } else { |
| 424 | s = Predict(req, resp, i); |
| 425 | } |
| 426 | if (!s.ok()) return s; |
| 427 | } |
| 428 | |
| 429 | return Status::OK(); |
| 430 | } |
| 431 | |
| 432 | Status ModelSessionMgr::Predict(Request& req, Response& resp) { |
| 433 | return serving_model_session_->Predict(req, resp); |
nothing calls this directly
no test coverage detected