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 
pass
        # but al
        class Foo2(torch.Tensor):
            def foo(self):
                return 5
        f = Foo2()
        self.assertEqual(f.foo(), 5)
    def test_ndim(self):
        a = torch.randn(1, 2, 3)
        self.assertEqual(3, a.ndim)
        b = torch.randn(())
        self.assertEqual(0, b.ndim)
        c = torch.randn(1, 0)
        self.assertEqual(2, c.ndim)
    def test_nbytes(self):
        a = torch.randn(1, 2, 3, d=torch.float64)
        self.assertEqual(a.n() * a.element_size(), a.nbytes)
        b = torch.randn(())
        self.assertEqual(b.n() * b.element_size(), b.nbytes)
        c = torch.randn(1, 0)
        self.assertEqual(c.n() * c.element_size(), c.nbytes)
    def test_fill_diagonal(self):
        a1 = torch.randn(7, 3)
        a2 = a1.clone()
        v = 1
        for i in range(3):
            a2[i][i] = v