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 
__slots__ = ['slot1']
            def __del__(self):
                m1[0] = True
        class SlotTensor2(SlotTensor1):
            __slots__ = ['slot2']
            def __del__(self):
                m2[0] = True
        x = SlotTensor1(torch.empty(2))
        y = SlotTensor2(torch.empty(2))
        x.slot1 = y
        y.slot2 = x
        del x
        with disable_gc():
            del y
            self.assertFalse(m1[0])
            self.assertFalse(m2[0])
        gc.collect()
        self.assertTrue(m1[0])
        self.assertTrue(m2[0])
    # FIXME: move to test_autograd?
    @skipIfTorchDynamo("TorchDynamo does not work well with hooks")
    def test_backward_hooks_traverse(self):