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

Method test_empty

tests/python/sparse_tensor.py:49–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47 print(input)
48
49 def test_empty(self):
50 print(f"{self.__class__.__name__}: test_empty SparseTensor")
51 feats = torch.FloatTensor(0, 16)
52 coords = torch.IntTensor(0, 4)
53 input = SparseTensor(feats, coordinates=coords)
54 print(input)
55
56 def test_tensor_stride(self):
57 print(f"{self.__class__.__name__}: test_tensor_stride SparseTensor")

Callers

nothing calls this directly

Calls 1

SparseTensorClass · 0.90

Tested by

no test coverage detected