Hi,
it will depend on the shrinkage method you want to use. If it’s max or mean, then maxpooling and meanpooling should be fairly efficient.
Otherwise, you can reshape your tensor using .view() in an NxL Tensor and use a reduction operation of your choise on the second dimension.