| 34 | // ======================== at::empty basic tests ======================== |
| 35 | |
| 36 | TEST(ATenEmptyTest, BasicShape) { |
| 37 | at::Tensor t = at::empty({3, 4}); |
| 38 | ASSERT_EQ(t.sizes()[0], 3); |
| 39 | ASSERT_EQ(t.sizes()[1], 4); |
| 40 | } |
| 41 | |
| 42 | TEST(ATenEmptyTest, DtypeFloat) { |
| 43 | at::Tensor t = at::empty({2, 2}, at::TensorOptions().dtype(at::kFloat)); |
nothing calls this directly
no test coverage detected