When I experiment on language model example of
pytorch, the following use of
contiguous seems make no difference without it.
data = data.view(bsz, -1).t().contiguous()
I checked docs on
contiguous here, but the limited info still makes me question the necessity of use here.
I tried to find
tensor.contiguous in github, but couldn't find it.
Could anyone point to the source code of
torch.Tensor.contiguous for me? Thanks a lot!