Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hustvl/Vim
/ test_empty_cat
Method
test_empty_cat
det/tests/structures/test_boxes.py:190–192 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
188
189
class
TestBoxes(unittest.TestCase):
190
def
test_empty_cat(self):
191
x = Boxes.cat([])
192
self.assertTrue(x.tensor.shape, (0, 4))
193
194
def
test_to(self):
195
x = Boxes(torch.rand(3, 4))
Callers
nothing calls this directly
Calls
1
cat
Method · 0.45
Tested by
no test coverage detected