MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / Warmup

Method Warmup

serving/processor/serving/model_session.cc:417–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417Status 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
432Status ModelSessionMgr::Predict(Request& req, Response& resp) {
433 return serving_model_session_->Predict(req, resp);

Callers

nothing calls this directly

Calls 2

GetSessionNumMethod · 0.80
okMethod · 0.45

Tested by

no test coverage detected