MCPcopy Create free account
hub / github.com/PeizeSun/SparseR-CNN / test_empty_cat

Method test_empty_cat

tests/structures/test_boxes.py:177–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

175
176class 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")

Callers

nothing calls this directly

Calls 1

catMethod · 0.45

Tested by

no test coverage detected