    def __init__(self, cfg, name, data_format='NCHW'):
        """
        PPYOLODetBlock layer
        Args:
            cfg (list): layer configs for this block
            name (str): block name
            data_format (str): data format, NCHW or NHWC
        """
        super(PPYOLODetBlock, self).__init__()
        self.conv_module = nn.Sequential()
        for idx, (conv_name, layer, args, kwargs) in enumerate(cfg[:-1]):
            kwargs.update(
                name='{}_{}'.format(name, conv_name), data_format=data_format)
            # self.conv_module.add_sublayer(conv_name, layer(*args, **kwargs))
            self.conv_module.add_module(conv_name, layer(*args, **kwargs))

        conv_name, layer, args, kwargs = cfg[-1]
        kwargs.update(
            name='{}_{}'.format(name, conv_name), data_format=data_format)
        self.tip = layer(*args, **kwargs)
PPYOLODetBlock layer
Args:
cfg (list): layer configs for this block
name (str): block name
data_format (str): data format, NCHW or NHWC
ptstructure/layout/ptppyolov2/ppyolov2_yolo_fpn.py