def _nostride_dilate(self, m, dilate):
    if isinstance(m, nn.Conv2d):
        if (m.stride == (2, 2)):
            m.stride = (1, 1)
            if (m.kernel_size == (3, 3)):
                m.dilation = ((dilate // 2), (dilate // 2))
                m.padding = ((dilate // 2), (dilate // 2))
        elif (m.kernel_size == (3, 3)):
            m.dilation = (dilate, dilate)
            m.padding = (dilate, dilate)
def _nostride_dilate(self, m, dilate):
    if isinstance(m, nn.Conv2d):
        if (m.stride == (2, 2)):
            m.stride = (1, 1)
            if (m.kernel_size == (3, 3)):
                m.dilation = ((dilate // 2), (dilate // 2))
                m.padding = ((dilate // 2), (dilate // 2))
        elif (m.kernel_size == (3, 3)):
            m.dilation = (dilate, dilate)
            m.padding = (dilate, dilate)