| 30 | "Unexpected tensor shape size"); |
| 31 | |
| 32 | TEST(TensorShapeTest, DefaultStaticShapeConstructor) { |
| 33 | TensorShape<0> zero_tensor; |
| 34 | ASSERT_EQ(zero_tensor.size(), 0); |
| 35 | |
| 36 | constexpr int test_dim = 5; |
| 37 | // Default constructor |
| 38 | TensorShape<test_dim> empty_tensor; |
| 39 | for (int i = 0; i < test_dim; i++) { |
| 40 | EXPECT_EQ(empty_tensor[i], int64_t(0)); |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | TEST(TensorShapeTest, StaticShapeConstructor) { |
| 45 | // std::array and expanded list constructor |
nothing calls this directly
no test coverage detected