| 33 | namespace { |
| 34 | |
| 35 | TEST(TensorShapeTest, Default) { |
| 36 | // The default TensorShape constructor constructs a shape of 0-dim |
| 37 | // and 1-element. |
| 38 | TensorShape s; |
| 39 | EXPECT_EQ(s.dims(), 0); |
| 40 | EXPECT_EQ(s.num_elements(), 1); |
| 41 | } |
| 42 | |
| 43 | TEST(TensorShapeTest, set_dim) { |
| 44 | TensorShape s({10, 5}); |
nothing calls this directly
no test coverage detected