(self)
| 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]]) |
nothing calls this directly
no test coverage detected