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

Method test_small2

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

Source from the content-addressed store, hash-verified

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]])
266 feats = torch.FloatTensor([[1], [2]])
267 tfield = TensorField(coordinates=coords, features=feats)
268 tensor = tfield.splat()
269 print(tfield)
270 print(tensor)
271 print(tensor.interpolate(tfield))

Callers

nothing calls this directly

Calls 3

splatMethod · 0.95
TensorFieldClass · 0.90
interpolateMethod · 0.80

Tested by

no test coverage detected