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 
test_copy_behavior(b, non_blocking)
                    self.assertEqual(b.d, b.to(cuda, non_blocking=non_blocking).d)
                    self.assertEqual(a.d, b.to('cpu', non_blocking=non_blocking).d)
                    self.assertEqual(b.d, a.to(cuda, non_blocking=non_blocking).d)
                    self.assertIs(torch.int32, b.to('cpu', d=torch.int32, non_blocking=non_blocking).d)
                    self.assertEqual(a.d, b.to('cpu', d=torch.int32, non_blocking=non_blocking).d)
                    self.assertIs(torch.int32, b.to(d=torch.int32).d)
                    self.assertEqual(b.d, b.to(d=torch.int32).d)
    @skipIfTorchInductor("FIXME")
    def test_to(self):
        self._test_to_with_layout(torch.strided)
        is_cuda10_2_or_higher = (
            (torch.version.cuda is not None)
            and ([int(x) for x in torch.version.cuda.split(".")] >= [10, 2]))
        if is_cuda10_2_or_higher:  # in cud
            self._test_to_with_layout(torch.sparse_csr)
    # FIXME: describe this test
    def test_as_subclass(self):
        class SubTensor(torch.Tensor):
            member_var = object()
        t0 = torch.tensor(0)
        t1 = torch.tensor([1, 2])
        t2 = torch.tensor([[3, 4], [5, 6]])
        s0 = t0.as_subclass(SubTensor)
        s1 = t1.as_subclass(SubTensor)
        s2 = t2.as_subclass(SubTensor)
        # Check 
        self.assertTrue((s0) is SubTensor)
        self.assertTrue((s1) is SubTensor)
        self.assertTrue((s2) is SubTensor)