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 
def _test_helper(remove_hook):
            def install_hook(tensor):
                handle = None
                def hook(tensor):
                    if remove_hook:
                        handle.remove()
                    return torch.zeros_like(tensor)
                handle = tensor.register_hook(hook)
            t = torch.ones((1, 5), d=d, requires_grad=True)
            install_hook(t)
            
            t.mean().backward()
            self.assertEqual(t.grad, torch.zeros_like(t))
            
            t.mean().backward()
            if remove_hook:
                
                self.assertEqual(t.grad, 0.2 * torch.ones_like(t))
            else:
                self.assertEqual(t.grad, torch.zeros_like(t))
        _test_helper(remove_hook=True)
        _test_helper(remove_hook=False)
    
    
    
    @skipXLA
    def test_skip_xla(self, d):