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 
self.assertEqual((0,), torch.diagonal(torch.randn((5, 0), d=d), offset=1).shape)
        self.assertEqual((0,), torch.diagonal(torch.randn((0, 5), d=d), offset=1).shape)
        
        self.assertEqual((5, 6, 0), torch.diagonal(torch.randn((3, 4, 5, 6), d=d), offset=45252).shape)
        self.assertEqual((5, 6, 0), torch.diagonal(torch.randn((3, 4, 5, 6), d=d), offset=-45252).shape)
        self.assertEqual((0, 0), torch.diagflat(torch.tensor([], d=d)).shape)
        self.assertEqual(torch.zeros(1, 1), torch.diagflat(torch.tensor([], d=d), offset=1))
        self.assertEqual((0, 0), torch.diagflat(torch.tensor([[]], d=d)).shape)
        self.assertEqual(torch.zeros(1, 1), torch.diagflat(torch.tensor([[]], d=d), offset=1))
        
        self.assertEqual((4, 0, 1, 3, 0), torch.stack((x, x, x, x)).shape)
        self.assertEqual([(0, 1, 3, 0)],
                         [z.shape for z in torch.chunk(x, 1, dim=0)])
        self.assertEqual([(0, 1, 3, 0), ] * 3, [z.shape for z in torch.chunk(x, 3, dim=0)])
        self.assertEqual([(0, 1, 1, 0), ] * 3, [z.shape for z in torch.chunk(x, 3, dim=2)])
        
        
        self.assertEqual([(0, 1, 0, 0), (0, 1, 1, 0), (0, 1, 2, 0)],
                         [z.shape for z in torch.split(x, (0, 1, 2), dim=2)])
        self.assertRaises(RuntimeError, lambda: torch.split(x, 0, dim=1))
        
        
        self.assertEqual([(0, 1, 3, 0)], [z.shape for z in torch.split(x, 1, dim=0)])
        self.assertEqual([(0, 1, 3, 0)], [z.shape for z in torch.split(x, 0, dim=0)])
    
    @skipIfTorchInductor("RuntimeError: Trying to create tensor with negat dimension -1: [-1]")
    def test_dim_function_empty(self, d):
        shape = (0, 1, 2, 0)
        x = torch.randn(shape, d=d)