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

Method test_small

tests/python/tensor_field.py:255–262  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

253 self.tensor_field.splat()
254
255 def test_small(self):
256 coords = torch.FloatTensor([[0, 0.1], [0, 1.1]])
257 feats = torch.FloatTensor([[1], [2]])
258 tfield = TensorField(coordinates=coords, features=feats)
259 tensor = tfield.splat()
260 print(tfield)
261 print(tensor)
262 print(tensor.interpolate(tfield))
263
264 def test_small2(self):
265 coords = torch.FloatTensor([[0, 0.1, 0.1], [0, 1.1, 1.1]])

Callers

nothing calls this directly

Calls 3

splatMethod · 0.95
TensorFieldClass · 0.90
interpolateMethod · 0.80

Tested by

no test coverage detected