| 122 | } while (0); |
| 123 | |
| 124 | TEST_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 | |
| 135 | TEST_F(ShapeRefinerTest, MatMul) { |
| 136 | ShapeRefiner m(TF_GRAPH_DEF_VERSION, OpRegistry::Global()); |
nothing calls this directly
no test coverage detected