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

Function TEST_F

serving/processor/serving/model_session_test.cc:229–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227};
228
229TEST_F(ModelSessionMgrTest, CreateModelSessionReturnStatusOK) {
230 MetaGraphDef test_graph_def;
231 SessionOptions sess_options;
232 RunOptions run_options;
233 TestableModelSessionMgr mgr(test_graph_def, &sess_options, &run_options);
234
235 Version version;
236 ModelConfig config = CreateValidModelConfig();
237 FakeFeatureStoreMgr feature_store(&config);
238 EXPECT_TRUE(mgr.CreateModelSession(version, config.checkpoint_dir.c_str(),
239 &feature_store, false, false, &config, "graph_signature").ok());
240}
241
242TEST_F(ModelSessionMgrTest, CreateModelSessionWhenPrevServingDone) {
243 MetaGraphDef test_graph_def;

Callers

nothing calls this directly

Calls 9

CreateValidModelConfigFunction · 0.85
CreateModelSessionMethod · 0.80
c_strMethod · 0.80
GetModelSessionSizeMethod · 0.80
GetServingSessionMethod · 0.80
AddModelSessionMethod · 0.80
CleanupModelSessionMethod · 0.80
okMethod · 0.45
PredictMethod · 0.45

Tested by

no test coverage detected