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

Function TEST

tensorflow/core/grappler/optimizers/data/function_utils_test.cc:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace {
29
30TEST(FunctionDefTensorDesc, Parsing) {
31 FunctionDefTensorDesc f("Cast:y:0");
32 EXPECT_EQ(f.full_str, "Cast:y:0");
33 EXPECT_EQ(f.node_name, "Cast");
34 EXPECT_EQ(f.node_output, "y");
35 EXPECT_EQ(f.position, 0);
36
37 FunctionDefTensorDesc f2("Arg0");
38 EXPECT_EQ(f2.full_str, "Arg0");
39 EXPECT_EQ(f2.node_name, "Arg0");
40 EXPECT_EQ(f2.node_output, "");
41 EXPECT_EQ(f2.position, -1);
42}
43
44TEST(ReplaceReferencesTest, ReplaceReferencesTest) {
45 FunctionDef outer = FunctionDefHelper::Create(

Callers

nothing calls this directly

Calls 15

ReplaceReferencesFunction · 0.85
XTimesTwoFunction · 0.85
AddFunctionInputFunction · 0.85
FindFunctionNodeWithNameFunction · 0.85
FindFunctionNodeWithOpFunction · 0.85

Tested by

no test coverage detected