    def test_same_padding(self):
        """
        Test same padding function.
        """
        in_height = 4
        in_width = 4
        stride_h = 1
        stride_w = 1
        filter_height = 1
        filter_width = 1
        x = torch.Tensor(1, 3, 4, 4)
        out = same_padding(x = x,
                    in_height = in_height,
                    in_width = in_width,
                    stride_h = stride_h,
                    stride_w = stride_w,
                    filter_height = filter_height,
                    filter_width = filter_width,
                    )
        print(out.shape)
        self.assertTrue(out.shape == torch.Size([1, 3, 4, 4]))
Test same padding function.
tests/unittests/models/layers/test_padding_functions.py