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

Function TEST

tensorflow/cc/client/client_session_test.cc:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75};
76
77TEST(ClientSessionTest, Basic) {
78 Scope root = Scope::NewRootScope();
79 auto c = Const(root, {{1, 1}});
80 ClientSession session(root);
81 std::vector<Tensor> outputs;
82
83 TF_EXPECT_OK(session.Run({c}, &outputs));
84 test::ExpectTensorEqual<int>(outputs[0], test::AsTensor<int>({1, 1}, {1, 2}));
85}
86
87TEST(ClientSessionTest, Feed) {
88 Scope root = Scope::NewRootScope();

Callers

nothing calls this directly

Calls 15

DefaultFunction · 0.85
BatchMatMulFunction · 0.85
BlockMethod · 0.80
nameMethod · 0.65
ConstFunction · 0.50
PlaceholderFunction · 0.50
AddFunction · 0.50
ShapeClass · 0.50
MulFunction · 0.50
SubFunction · 0.50
RunMethod · 0.45

Tested by

no test coverage detected