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

Method func

tests/structures/test_boxes.py:184–186  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

182 @unittest.skipIf(TORCH_VERSION < (1, 6), "Insufficient pytorch version")
183 def test_scriptability(self):
184 def func(x):
185 boxes = Boxes(x)
186 return boxes.area()
187
188 f = torch.jit.script(func)
189 f(torch.rand((3, 4)))

Callers

nothing calls this directly

Calls 2

areaMethod · 0.95
BoxesClass · 0.90

Tested by

no test coverage detected