Closed isalirezag closed 6 years ago
can someone tell me what loc.append(l(x).permute(0, 2, 3, 1).contiguous()) does? I dont understand what permute and contiguous does, and how they wrk
loc.append(l(x).permute(0, 2, 3, 1).contiguous())
permute is used to change the axis, while the contiguous is used to make the data contiguous in the memory.
can someone tell me what
loc.append(l(x).permute(0, 2, 3, 1).contiguous())
does? I dont understand what permute and contiguous does, and how they wrk