Method
__init__
(self, factor: Union[int, Tuple[int, ...], List[int]])
Source from the content-addressed store, hash-verified
| 16 | Implemented as average pooling. |
| 17 | """ |
| 18 | def __init__(self, factor: Union[int, Tuple[int, ...], List[int]]): |
| 19 | super(SparseDownsample, self).__init__() |
| 20 | self.factor = tuple(factor) if isinstance(factor, (list, tuple)) else factor |
| 21 | |
| 22 | def forward(self, input: SparseTensor) -> SparseTensor: |
| 23 | DIM = input.coords.shape[-1] - 1 |
Callers
nothing calls this directly
Tested by
no test coverage detected