This previous discussion may seem relevant:-

  
    
    
    How to modify a Conv2d to Depthwise Separable Convolution? 
  
  
    Can you help me in figuring out how do I modify the Depthwise convolution to full convolution? I have them as follows - 
class ConvBNReLU(nn.Sequential):
    def __init__(self, in_planes, out_planes, kernel_size, stride=1, groups=1):
        padding = (kernel_size - 1) // 2
        super(ConvBNReLU, self).__init__(
            nn.Conv2d(in_planes, out_planes, kernel_size, stride, padding, groups=groups, bias=False),
            nn.BatchNorm2d(out_planes),
            nn.ReLU6(inplace=True)
     …