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 
cuda1 = torch.d('cuda', 1)
        self.assertEqual('cuda:1', str(cuda1))
        self.assertEqual('cuda', cuda1.)
        self.assertEqual(1, cuda1.index)
        cuda90 = torch.d('cuda', 90)
        self.assertEqual('cuda:90', str(cuda90))
        self.assertEqual('cuda', cuda90.)
        self.assertEqual(90, cuda90.index)
        self.assertRaises(RuntimeError, lambda: torch.d('cpu:-1'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:-1'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:2 '))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda: 2'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:2 2'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:2.'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:2?'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:?2'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:2.232'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:2 cuda:3'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:2+cuda:3'))
        self.assertRaises(RuntimeError, lambda: torch.d('cuda:2cuda:3'))
        self.assertRaises(RuntimeError, lambda: torch.d(-1))
        self.assertRaises(RuntimeError, lambda: torch.d('other'))
        self.assertRaises(RuntimeError, lambda: torch.d('other:0'))
        d_set = {'cpu', 'cpu:0', 'cuda', 'cuda:0', 'cuda:1', 'cuda:10', 'cuda:100'}
        d_hash_set = set()
        for d in list(d_set):
            d_hash_set.add(hash(torch.d(d)))
        self.assertEqual(len(d_set), len(d_hash_set))
        def get_expected_d_repr(d):