MCPcopy Create free account
hub / github.com/TencentARC/Pixal3D / __init__

Method __init__

pixal3d/modules/sparse/spatial/basic.py:76–80  ·  view source on GitHub ↗
(
        self, factor: int
    )

Source from the content-addressed store, hash-verified

74 Implemented as nearest neighbor interpolation.
75 """
76 def __init__(
77 self, factor: int
78 ):
79 super(SparseUpsample, self).__init__()
80 self.factor = factor
81
82 def forward(self, x: SparseTensor, subdivision: Optional[SparseTensor] = None) -> SparseTensor:
83 DIM = x.coords.shape[-1] - 1

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected