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 
def get_generator(memory_format, shape, d):
            def input_generator_fn(d):
                return torch.randn(shape, d=d, d=d).clamp(0, 1) \
                    .round().contiguous(memory_format=memory_format)
            return input_generator_fn
        def get_fn(fn_name):
            def transformation_fn(tensor, **kwargs):
                fn = getattr(tensor, fn_name)
                return fn(**kwargs)
            return transformation_fn
        shortcuts = ['byte', 'char', 'double', 'bool', 'half', 'int', 'long', 'short']
        if d == 'cpu':
            shortcuts += ['bfloat16']
        formats_shapes = (
            (torch.channels_last, (4, 3, 8, 8)),
            (torch.channels_last_3d, (4, 3, 8, 8, 8)))
        for mf, shape in formats_shapes:
            for fn_name in shortcuts:
                self._test_memory_format_transformations(
                    d, get_generator(mf, shape, torch.float32), get_fn(fn_name), mf, default_is_preserve=True)
        
        for mf, shape in formats_shapes:
            self._test_memory_format_transformations(
                d, get_generator(mf, shape, torch.float64), get_fn('float'), mf, default_is_preserve=True)
    @onlyCUDA
    @skipIfTorchInductor("To be ed")
    def test_memory_format_cpu_and_cuda_ops(self, d):
        def get_generator(memory_format, shape):
            def input_generator_fn(d):