MCPcopy Index your code
hub / github.com/microsoft/TRELLIS / get_spatial_cache

Method get_spatial_cache

trellis/modules/sparse/basic.py:381–389  ·  view source on GitHub ↗

Get a spatial cache.

(self, key=None)

Source from the content-addressed store, hash-verified

379 self._spatial_cache[scale_key][key] = value
380
381 def get_spatial_cache(self, key=None):
382 """
383 Get a spatial cache.
384 """
385 scale_key = str(self._scale)
386 cur_scale_cache = self._spatial_cache.get(scale_key, {})
387 if key is None:
388 return cur_scale_cache
389 return cur_scale_cache.get(key, None)
390
391
392def sparse_batch_broadcast(input: SparseTensor, other: torch.Tensor) -> torch.Tensor:

Calls

no outgoing calls

Tested by

no test coverage detected