Platforms: linux

This test was disabled because it is failing on master ([recent examples](http://torch-ci.com/failure/test_torch.py%3A%3ATestTorch%3A%3Atest_equal)).

The cause seems to point to https://github.com/pytorch/pytorch/pull/100024 (or D45282119 as it was landed internally)

cc @mruberry @houseroad @ezyang 
shape = (0, 2)
        x = torch.randn(shape, d=d)
        self.assertEqual(torch.empty(0, d=d), torch.pdist(x))
        shape = (1, 2)
        x = torch.randn(shape, d=d)
        self.assertEqual(torch.empty(0, d=d), torch.pdist(x))
        shape = (3, 0)
        x = torch.randn(shape, d=d)
        self.assertEqual(torch.zeros(3, d=d), torch.pdist(x))
    def test_cdist_empty(self, d):
        x = torch.randn((0, 5), d=d)
        y = torch.randn((4, 5), d=d)
        self.assertEqual(torch.empty(0, 4, d=d), torch.cdist(x, y))
        x = torch.randn((2, 5), d=d)
        y = torch.randn((0, 5), d=d)
        self.assertEqual(torch.empty(2, 0, d=d), torch.cdist(x, y))
        x = torch.randn((2, 0), d=d)
        y = torch.randn((3, 0), d=d)
        self.assertEqual(torch.zeros(2, 3, d=d), torch.cdist(x, y))
        x = torch.randn((2, 0), d=d)
        y = torch.randn((0, 0), d=d)
        self.assertEqual(torch.empty(2, 0, d=d), torch.cdist(x, y))
    def _brute_cdist(self, x, y, p=2):