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 
b = (t0, tn)
            with filecontext_lambda() as f:
                torch.save(b, f)
                f.seek(0)
                c = torch.load(f)
                self.assertEqual(b, c, atol=0, rtol=0)
                u0, un = c
                self.assertEqual(str(u0.d), ds[0])
                self.assertEqual(str(un.d), ds[-1])
        _test_serialization(tempfile.NamedTemporaryFile)
        _test_serialization(BytesIOContext)
    
    def test_memory_format_preserved_after_permute(self, d):
        x = torch.randn(4, 3, 8, 8, d=d)
        nhwc = x.contiguous(memory_format=torch.channels_last)
        y = nhwc.permute(0, 1, 3, 2).permute(0, 1, 3, 2)
        self.assertTrue(y.is_contiguous(memory_format=torch.channels_last))
        x = torch.randn(4, 3, 8, 8, 8, d=d)
        ndhwc = x.contiguous(memory_format=torch.channels_last_3d)
        y = ndhwc.permute(0, 1, 4, 3, 2).permute(0, 1, 4, 3, 2)
        self.assertTrue(y.is_contiguous(memory_format=torch.channels_last_3d))
    @skipIfTorchInductor("To be ed")
    def test_memory_format_propagation_rules(self, d):
        contiguous = torch.rand(10, 3, 5, 5, d=d)
        cl = torch.rand(10, 3, 5, 5, d=d).contiguous(memory_format=torch.channels_last)
        ambiguous = torch.rand(10, 3, 1, 1, d=d).contiguous(memory_format=torch.channels_last)
        self.assertTrue(ambiguous.is_contiguous(memory_format=torch.channels_last))
        self.assertTrue(ambiguous.is_contiguous(memory_format=torch.contiguous_format))
        bias = torch.rand(1, 1, 1, 1, d=d).contiguous(memory_format=torch.channels_last)
        def _test_propagation_rules(self, contiguous, cl, ambiguous, bias):