| 23 | namespace processor { |
| 24 | |
| 25 | TEST(UtilsTest, HasDynamicShapeOutput0) { |
| 26 | GraphDef graph_def; |
| 27 | NodeDef* n0 = graph_def.add_node(); |
| 28 | n0->set_name("A"); |
| 29 | n0->set_op("A"); |
| 30 | AttrValue value0; |
| 31 | tensorflow::TensorShapeProto tshape0; |
| 32 | tshape0.add_dim()->set_size(-1); |
| 33 | *value0.mutable_shape() = tshape0; |
| 34 | (*n0->mutable_attr())["_output_shapes"] = value0; |
| 35 | |
| 36 | EXPECT_TRUE(HasDynamicShapeOutput(n0)); |
| 37 | } |
| 38 | |
| 39 | TEST(UtilsTest, HasDynamicShapeOutput1) { |
| 40 | GraphDef graph_def; |
nothing calls this directly
no test coverage detected