I thought transposing/permuting a Tensor always results in a non-contiguous Tensor.
a = torch.randn(2, 3, 4, 5, 6)
a.is_contiguous()
>> True

a = a.view(2, 12, 5, 6)
a.is_contiguous()
>> True

b = a.permute(1, 0 , 2, 3)
a.is_contiguous()
>> True
b.is_contiguous()
>> False

Calling a.permute keeps a as a contiguous Tensor. Could you explain, where my misunderstanding is?