| 442 | } |
| 443 | |
| 444 | Status 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 | |
| 458 | Status ModelSessionMgr::CreateModelSession( |
| 459 | const Version& version, const char* ckpt_name, |