MCPcopy Create free account
hub / github.com/NVIDIA/MinkowskiEngine / test

Method test

tests/cpp/coordinate_map_key_test.py:7–13  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5
6class CoordinateMapKeyTestCase(unittest.TestCase):
7 def test(self):
8 MinkowskiEngineTest._C.coordinate_map_key_test()
9 key = MinkowskiEngineTest._C.CoordinateMapKey([3, 4, 5], "")
10 print(key.__repr__())
11 self.assertEqual([3, 4, 5], key.get_tensor_stride())
12 self.assertEqual(4, key.get_coordinate_size())
13 self.assertEqual(([3, 4, 5], ''), key.get_key())
14
15 def test(self):
16 MinkowskiEngineTest._C.coordinate_map_key_test()

Callers

nothing calls this directly

Calls 5

get_tensor_strideMethod · 0.95
get_coordinate_sizeMethod · 0.95
get_keyMethod · 0.95
CoordinateMapKeyMethod · 0.80
__repr__Method · 0.45

Tested by

no test coverage detected