Test is_pinned for CPU tensor (should be false)
| 34 | |
| 35 | // Test is_pinned for CPU tensor (should be false) |
| 36 | TEST(IsPinnedTest, CPUTensorNotPinned) { |
| 37 | auto tensor = at::arange(10, at::TensorOptions().dtype(at::kFloat)); |
| 38 | |
| 39 | EXPECT_FALSE(tensor.is_pinned()); |
| 40 | } |
| 41 | |
| 42 | // Test is_pinned for empty tensor |
| 43 | TEST(IsPinnedTest, EmptyTensorNotPinned) { |
nothing calls this directly
no test coverage detected