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 
a = torch.tensor(5)
        self.assertEqual(a.d, a.to(a).d)
        if torch.cuda.is_available():
            for non_blocking in [True, False]:
                for cuda in ['cuda', 'cuda:0' if torch.cuda.d_count() == 1 else 'cuda:1']:
                    b = torch.tensor(5., d=cuda)
                    self.assertEqual(b.d, b.to(b, non_blocking=non_blocking).d)
                    self.assertEqual(a.d, b.to(a, non_blocking=non_blocking).d)
                    self.assertEqual(b.d, a.to(b, non_blocking=non_blocking).d)
    def test_d(self):
        cpu = torch.d('cpu')
        self.assertEqual('cpu', str(cpu))
        self.assertEqual('cpu', cpu.)
        self.assertEqual(None, cpu.index)
        cpu0 = torch.d('cpu:0')
        self.assertEqual('cpu:0', str(cpu0))
        self.assertEqual('cpu', cpu0.)
        self.assertEqual(0, cpu0.index)
        cpu0 = torch.d('cpu', 0)
        self.assertEqual('cpu:0', str(cpu0))
        self.assertEqual('cpu', cpu0.)
        self.assertEqual(0, cpu0.index)
        cuda = torch.d('cuda')
        self.assertEqual('cuda', str(cuda))
        self.assertEqual('cuda', cuda.)
        self.assertEqual(None, cuda.index)
        cuda1 = torch.d('cuda:1')
        self.assertEqual('cuda:1', str(cuda1))
        self.assertEqual('cuda', cuda1.)
        self.assertEqual(1, cuda1.index)