    def test_pad_same(self):
        """
        Test pad same function.
        """
        x = torch.Tensor(1, 3, 4, 4)
        k = [3, 3]
        s = [1, 1]
        d = [1, 1]
        value = 128.0
        out = pad_same(x, k, s, d, value)
        self.assertEqual(out.shape, torch.Size((1, 3, 6, 6)))
        self.assertEqual(out[0, 0, 0, 0], 128.0)
Test pad same function.
tests/unittests/models/layers/test_padding_functions.py