MCPcopy Create free account
hub / github.com/microsoft/TRELLIS / __init__

Method __init__

trellis/modules/sparse/spatial.py:64–66  ·  view source on GitHub ↗
(self, factor: Union[int, Tuple[int, int, int], List[int]])

Source from the content-addressed store, hash-verified

62 Implemented as nearest neighbor interpolation.
63 """
64 def __init__(self, factor: Union[int, Tuple[int, int, int], List[int]]):
65 super(SparseUpsample, self).__init__()
66 self.factor = tuple(factor) if isinstance(factor, (list, tuple)) else factor
67
68 def forward(self, input: SparseTensor) -> SparseTensor:
69 DIM = input.coords.shape[-1] - 1

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected