[docs]classConcatDownsample2d(nn.Module):"""Implements a loss-less downsampling operation described in `"YOLO9000: Better, Faster, Stronger" <https://pjreddie.com/media/files/papers/YOLO9000.pdf>`_ by stacking adjacent information on the channel dimension. Args: scale_factor (int): spatial scaling factor """def__init__(self,scale_factor):super(ConcatDownsample2d,self).__init__()self.scale_factor=scale_factordefforward(self,x):returnF.concat_downsample2d(x,self.scale_factor)