(
self, factor: int
)
| 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 |