def METHOD_NAME(self, cfg: CfgNode, dim_in: int):
    """
    Initialize confidence estimation layers based on configuration options
    Args:
        cfg (CfgNode): configuration options
        dim_in (int): number of input channels
    """
    kernel_size = cfg.MODEL.ROI_DENSEPOSE_HEAD.DECONV_KERNEL
    if self.confidence_model_cfg.segm_confidence.enabled:
        self.coarse_segm_confidence_lowres = ConvTranspose2d(  # pyre-ignore[16]
            dim_in, 1, kernel_size, stride=2, padding=int(kernel_size / 2 - 1)
        )