minuet.nn.functional.pooling#
Functions
Applies average pooling on the given   | 
|
Applies max pooling on the given   | 
|
Applies sum pooling on the given   | 
- global_avg_pool(x: SparseTensor)#
 Applies average pooling on the given
SparseTensor. For each point cloud in the givenSparseTensor, the feature tensor will be reduced withtorch.mean()function. If there are multiple point clouds in theSparseTensor, the outputs will be stacked together with the batch order.- Parameters:
 x – the given
SparseTensorfor average pooling- Returns:
 the result tensor after average pooling
- global_max_pool(x: SparseTensor)#
 Applies max pooling on the given
SparseTensor. For each point cloud in the givenSparseTensor, the feature tensor will be reduced withtorch.max()function. If there are multiple point clouds in theSparseTensor, the outputs will be stacked together with the batch order.- Parameters:
 x – the given
SparseTensorfor average pooling- Returns:
 the result tensor after average pooling
- global_sum_pool(x: SparseTensor)#
 Applies sum pooling on the given
SparseTensor. For each point cloud in the givenSparseTensor, the feature tensor will be reduced withtorch.sum()function. If there are multiple point clouds in theSparseTensor, the outputs will be stacked together with the batch order.- Parameters:
 x – the given
SparseTensorfor sum pooling- Returns:
 the result tensor after sum pooling