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 
for dim in [0, 2]:
            y = torch.randn(shape, d=d)
            y_src = torch.randn(shape, d=d)
            ind = torch.empty(shape, d=torch.int64, d=d)
            self.assertEqual(shape, y.scatter_(dim, ind, y_src).shape)
            self.assertEqual(shape, y.scatter_add_(dim, ind, y_src).shape)
        z = torch.randn((2, 3, 4), d=d)
        z_src = torch.randn((2, 3, 4), d=d)
        self.assertEqual(z, z.scatter_(2, torch.empty((2, 3, 0), d=torch.int64, d=d), z_src))
        self.assertEqual(z, z.scatter_add_(2, torch.empty((2, 3, 0), d=torch.int64, d=d), z_src))
        
        c = x.clone()
        c_clone = c.clone()
        ind_empty = torch.tensor([], d=torch.int64, d=d)
        ind_01 = torch.tensor([0, 1], d=torch.int64, d=d)
        self.assertEqual(c_clone, c.index_fill_(0, ind_empty, -1))
        self.assertEqual(c_clone, c.index_fill_(2, ind_empty, -1))
        self.assertEqual(c_clone, c.index_fill_(2, ind_01, -1))
        self.assertEqual(c_clone, c.index_copy_(0, ind_empty, torch.empty((0, 1, 2, 0), d=d)))
        self.assertEqual(c_clone, c.index_copy_(2, ind_empty, torch.empty((0, 1, 0, 0), d=d)))
        self.assertEqual(c_clone, c.index_copy_(2, ind_01, torch.empty((0, 1, 2, 0), d=d)))
        self.assertEqual(c_clone, c.index_add_(0, ind_empty, torch.empty((0, 1, 2, 0), d=d)))
        self.assertEqual(c_clone, c.index_add_(2, ind_empty, torch.empty((0, 1, 0, 0), d=d)))
        self.assertEqual(c_clone, c.index_add_(2, ind_01, torch.empty((0, 1, 2, 0), d=d)))
        c = torch.randn((0, 1, 2), d=d)
        c_clone = c.clone()
        self.assertEqual(c_clone, c.index_fill_(0, ind_empty, -1))
        self.assertEqual(c_clone, c.index_copy_(0, ind_empty, torch.empty((0, 1, 2), d=d)))
        self.assertEqual(c_clone, c.index_add_(0, ind_empty, torch.empty((0, 1, 2), d=d)))