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 
self.assertExpectedInline(str(x), expected_str)
        # test s
        x = torch.zeros(10000)
        self.assertEqual(x.__repr__(), str(x))
        self.assertExpectedInline(str(x), '''tensor([0., 0., 0.,  ..., 0., 0., 0.])''')
        # test i
        x = torch.rand(1, 20, 5, 30)
        s = torch._tensor_str.get_summarized_data(x)
        self.assertEqual(s.shape, (1, 6, 5, 6))
        first_and_last = [0, 1, 2, -3, -2, -1]
        self.assertEqual(s, x[:, first_and_last][..., first_and_last])
        # test d
        if torch.cuda.is_available():
            x = torch.tensor([123], d='cuda:0')
            self.assertEqual(x.__repr__(), str(x))
            self.assertExpectedInline(str(x), '''tensor([123], d='cuda:0')''')
            # test c
            torch.set_default_tensor_(torch.cuda.FloatTensor)
            self.assertEqual(x.__repr__(), str(x))
            self.assertExpectedInline(str(x), '''tensor([123])''')
            # test p
            if torch.cuda.d_count() >= 2:
                with torch.cuda.d(1):
                    self.assertEqual(x.__repr__(), str(x))
                    self.assertExpectedInline(str(x), '''tensor([123], d='cuda:0')''')
            # test p
            y = torch.tensor([123], d='cpu')
            self.assertEqual(y.__repr__(), str(y))
            self.assertExpectedInline(str(y), '''tensor([123], d='cpu')''')
        torch.set_default_tensor_(default_)