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

Method CreateModelSession

serving/processor/serving/model_session.cc:444–456  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444Status ModelSessionMgr::CreateModelSession(
445 const Version& version, const char* ckpt_name,
446 IFeatureStoreMgr* sparse_storage, bool is_incr_ckpt,
447 bool is_initialize, ModelConfig* config,
448 const std::string& graph_hash_value) {
449 ModelSession* new_model_session = nullptr;
450 TF_RETURN_IF_ERROR(
451 CreateModelSession(version, ckpt_name, sparse_storage,
452 is_incr_ckpt, is_initialize, config,
453 &new_model_session, graph_hash_value));
454 ResetServingSession(new_model_session);
455 return Status::OK();
456}
457
458Status ModelSessionMgr::CreateModelSession(
459 const Version& version, const char* ckpt_name,

Callers 6

LoadSavedModelMethod · 0.80
FullModelUpdateMethod · 0.80
DeltaModelUpdateMethod · 0.80
TEST_FFunction · 0.80

Calls 15

CreateSessionGroupFunction · 0.85
LockOrWaitFunction · 0.85
MaybeUpdateRealVersionFunction · 0.85
RunIncrRestoreCheckpointFunction · 0.85
HasMainOpFunction · 0.85
RunIncrMainOpFunction · 0.85
RunRestoreCheckpointFunction · 0.85
RunMainOpFunction · 0.85
c_strMethod · 0.80
GetIncrRestoreHandlerMethod · 0.80

Tested by 1

TEST_FFunction · 0.64