torchsparse#
- cat(inputs: List[SparseTensor]) SparseTensor [source]#
Concatenate a list of sparse tensors.
- Parameters:
inputs (List[SparseTensor]) – A list of sparse tensors.
- Returns:
The concatenated sparse tensor.
- Return type:
- class SparseTensor(feats: Tensor, coords: Tensor, stride: int | Tuple[int, ...] = 1)[source]#
Bases:
object
SparseTensor is the main data structure for point cloud.
- Parameters:
feats – 2D tensor with of shape N x C, where N is the number of points and C is the number of feature channels.
coords – 2D integer tensor with of shape N x 4, where the first three dimensions correspond to quantized x, y, z coordinates, and the last dimension denotes the batch index.
stride – The tensor stride of the current sparse tensor.