(self)
| 175 | |
| 176 | class TestBoxes(unittest.TestCase): |
| 177 | def test_empty_cat(self): |
| 178 | x = Boxes.cat([]) |
| 179 | self.assertTrue(x.tensor.shape, (0, 4)) |
| 180 | |
| 181 | # require https://github.com/pytorch/pytorch/pull/39336 |
| 182 | @unittest.skipIf(TORCH_VERSION < (1, 6), "Insufficient pytorch version") |