MCPcopy
hub / github.com/TencentARC/Pixal3D / spatial_shape

Method spatial_shape

pixal3d/modules/sparse/basic.py:491–496  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

489
490 @property
491 def spatial_shape(self) -> torch.Size:
492 spatial_shape = self.get_spatial_cache('shape')
493 if spatial_shape is None:
494 spatial_shape = self.__cal_spatial_shape(self.coords)
495 self.register_spatial_cache('shape', spatial_shape)
496 return spatial_shape
497
498 @property
499 def feats(self) -> torch.Tensor:

Callers

nothing calls this directly

Calls 3

get_spatial_cacheMethod · 0.95
__cal_spatial_shapeMethod · 0.95

Tested by

no test coverage detected