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

Method layout

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

Source from the content-addressed store, hash-verified

481
482 @property
483 def layout(self) -> List[slice]:
484 layout = self.get_spatial_cache('layout')
485 if layout is None:
486 layout = self.__cal_layout(self.coords, self.shape[0])
487 self.register_spatial_cache('layout', layout)
488 return layout
489
490 @property
491 def spatial_shape(self) -> torch.Size:

Callers

nothing calls this directly

Calls 3

get_spatial_cacheMethod · 0.95
__cal_layoutMethod · 0.95

Tested by

no test coverage detected