Method
__init__
(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 |
Tested by
no test coverage detected