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

Function TEST_F

tensorflow/core/common_runtime/shape_refiner_test.cc:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 } while (0);
123
124TEST_F(ShapeRefinerTest, Constant) {
125 // Create a constant node and validate that adding it is successful
126 // and that its shape is correct.
127 Scope root = Scope::NewRootScope();
128 auto c = ops::Const(root, 42.0f);
129 ShapeRefiner m(TF_GRAPH_DEF_VERSION, OpRegistry::Global());
130 TF_ASSERT_OK(m.AddNode(c.node()));
131
132 EXPECT_SHAPE("[]", m, c, 0);
133}
134
135TEST_F(ShapeRefinerTest, MatMul) {
136 ShapeRefiner m(TF_GRAPH_DEF_VERSION, OpRegistry::Global());

Callers

nothing calls this directly

Calls 15

PlaceholderWithDefaultFunction · 0.85
PartialTensorShapeClass · 0.85
StackClass · 0.85
XTimesTwoFunction · 0.85
XTimesFourFunction · 0.85
XTimes16Function · 0.85
WXPlusBFunction · 0.85
UnknownDimMethod · 0.80
UnknownShapeMethod · 0.80

Tested by

no test coverage detected