def make_layer(self, out_channels, num_blocks, stride, expand_ratio):
    'Stack InvertedResidual blocks to build a layer for MobileNetV2.\n\n        Args:\n            out_channels (int): out_channels of block.\n            num_blocks (int): number of blocks.\n            stride (int): stride of the first block. Default: 1\n            expand_ratio (int): Expand the number of channels of the\n                hidden layer in InvertedResidual by this ratio. Default: 6.\n        '
    layers = []
    for i in range(num_blocks):
        if (i >= 1):
            stride = 1
        layers.append(InvertedResidual(self.in_channels, out_channels, stride, expand_ratio=expand_ratio, conv_cfg=self.conv_cfg, norm_cfg=self.norm_cfg, act_cfg=self.act_cfg, with_cp=self.with_cp))
        self.in_channels = out_channels
    return nn.Sequential(*layers)
Stack InvertedResidual blocks to build a layer for MobileNetV2.

Args:
    out_channels (int): out_channels of block.
    num_blocks (int): number of blocks.
    stride (int): stride of the first block. Default: 1
    expand_ratio (int): Expand the number of channels of the
        hidden layer in InvertedResidual by this ratio. Default: 6.
def make_layer(self, out_channels, num_blocks, stride, expand_ratio):
    'Stack InvertedResidual blocks to build a layer for MobileNetV2.\n\n        Args:\n            out_channels (int): out_channels of block.\n            num_blocks (int): number of blocks.\n            stride (int): stride of the first block. Default: 1\n            expand_ratio (int): Expand the number of channels of the\n                hidden layer in InvertedResidual by this ratio. Default: 6.\n        '
    layers = []
    for i in range(num_blocks):
        if (i >= 1):
            stride = 1
        layers.append(InvertedResidual(self.in_channels, out_channels, stride, expand_ratio=expand_ratio, conv_cfg=self.conv_cfg, norm_cfg=self.norm_cfg, act_cfg=self.act_cfg, with_cp=self.with_cp))
        self.in_channels = out_channels
    return nn.Sequential(*layers)