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

Method RecursionCreateSession

serving/processor/serving/model_instance.cc:474–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474Status RemoteSessionInstance::RecursionCreateSession(const Version& version,
475 IFeatureStoreMgr* sparse_storage, ModelConfig* model_config) {
476 TF_RETURN_IF_ERROR(session_mgr_->CreateModelSession(version,
477 version.full_ckpt_name.c_str(),
478 sparse_storage, /*is_incr_ckpt*/false,
479 /*is_initialize*/storage_options_->is_init_storage_,
480 model_config, signature_hash_value_));
481
482 if (version.delta_ckpt_name.empty()) {
483 return Status::OK();
484 } else {
485 return session_mgr_->CreateModelSession(version,
486 version.delta_ckpt_name.c_str(),
487 sparse_storage, /*is_incr_ckpt*/true,
488 /*is_initialize*/storage_options_->is_init_storage_,
489 model_config, signature_hash_value_);
490 }
491}
492
493Status RemoteSessionInstance::Init(ModelConfig* model_config,
494 ModelStore* model_store, bool active) {

Callers

nothing calls this directly

Calls 3

CreateModelSessionMethod · 0.80
c_strMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected