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

Function TEST_F

tensorflow/core/graph/optimizer_cse_test.cc:109–120  ·  view source on GitHub ↗

Note that the "rules" in these tests are not meant to be logically correct

Source from the content-addressed store, hash-verified

107
108// Note that the "rules" in these tests are not meant to be logically correct
109TEST_F(OptimizerCSETest, Simple) {
110 InitGraph(
111 "node { name: 'A' op: 'Input'}"
112 "node { name: 'B' op: 'Input'}"
113 "node { name: 'C' op: 'Mul' attr { key: 'T' value { type: DT_FLOAT } }"
114 " input: ['A', 'B'] }"
115 "node { name: 'D' op: 'Mul' attr { key: 'T' value { type: DT_FLOAT } }"
116 " input: ['A', 'B'] }");
117 EXPECT_EQ(DoCSE(),
118 "A(Input);B(Input);C(Mul)|"
119 "A->C;B->C:1");
120}
121
122TEST_F(OptimizerCSETest, Simple_ThreeEquivalent) {
123 InitGraph(

Callers

nothing calls this directly

Calls 9

InitGraphFunction · 0.70
ConstantFunction · 0.70
ToGraphDefFunction · 0.70
TensorShapeClass · 0.50
SplitFunction · 0.50
DebugStringMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected