Contiguous() in pytorch

what is the use of contiguous()
a = torch.randint(1,10,(3, 4, 5))

b = a.permute(1, 2, 0)

c = b.contiguous()

Hi @tejaswi_lakshmi,
Contigous, as the name suggests is used to rearrange the memory addresses in a sequential manner in order to make the elements easily accessible.
For a brief explanation, you can refer to this