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

Function TEST_F

tensorflow/core/graph/mkl_layout_pass_test.cc:207–218  ·  view source on GitHub ↗

clang-format off

Source from the content-addressed store, hash-verified

205
206// clang-format off
207TEST_F(MklLayoutPassTest, Basic) {
208 InitGraph(
209 "node { name: 'A' op: 'Input'}"
210 "node { name: 'B' op: 'Input'}"
211 "node { name: 'C' op: 'Zeta' attr { key: 'T' value { type: DT_FLOAT } }"
212 " input: ['A', 'B'] }"
213 "node { name: 'D' op: 'Zeta' attr { key: 'T' value { type: DT_FLOAT } }"
214 " input: ['A', 'B'] }");
215 EXPECT_EQ(DoMklLayoutOptimizationPass(),
216 "A(Input);B(Input);C(Zeta);D(Zeta)|"
217 "A->C;A->D;B->C:1;B->D:1");
218}
219
220// Test set 1: Conv2D + AddBias
221

Callers

nothing calls this directly

Calls 1

InitGraphFunction · 0.70

Tested by

no test coverage detected