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

Function TEST_F

tensorflow/core/graph/subgraph_test.cc:149–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147REGISTER_OP("TestMul").Input("a: float").Input("b: float").Output("o: float");
148
149TEST_F(SubgraphTest, Targets1) {
150 ExpectOK(
151 "node { name: 'W1' op: 'TestParams' }"
152 "node { name: 'W2' op: 'TestParams' }"
153 "node { name: 'input' op: 'TestInput' }"
154 "node { name: 't1' op: 'TestMul' input: [ 'W1', 'input:1' ] }"
155 "node { name: 't2' op: 'TestMul' input: [ 'W2', 't1' ] }"
156 "node { name: 't3_a' op: 'TestRelu' input: 't2' }"
157 "node { name: 't3_b' op: 'TestRelu' input: 't2' }");
158 EXPECT_EQ("OK", Subgraph("", "", "t1"));
159 ExpectNodes("W1,input,t1");
160}
161
162TEST_F(SubgraphTest, Targets2) {
163 ExpectOK(

Callers

nothing calls this directly

Calls 4

IsRefTypeFunction · 0.85
HasSubstrFunction · 0.70
SubgraphClass · 0.50
output_typeMethod · 0.45

Tested by

no test coverage detected