| 22 | namespace platform = paddle::platform; |
| 23 | |
| 24 | TEST(DenseTensor, Dims) { |
| 25 | phi::DenseTensor tt; |
| 26 | tt.Resize({2, 3, 4}); |
| 27 | phi::DDim dims = tt.dims(); |
| 28 | ASSERT_EQ(arity(dims), 3); |
| 29 | for (int i = 0; i < 3; ++i) { |
| 30 | EXPECT_EQ(i + 2, dims[i]); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | TEST(DenseTensor, DataAssert) { |
| 35 | phi::DenseTensor src_tensor; |
nothing calls this directly
no test coverage detected