ShuangXieIrene / ssds.pytorch

Repository for Single Shot MultiBox Detector and its variants, implemented with pytorch, python3.
MIT License
571 stars 166 forks source link

regarding permute and contiguous #25

Closed isalirezag closed 6 years ago

isalirezag commented 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

foreverYoungGitHub commented 6 years ago

permute is used to change the axis, while the contiguous is used to make the data contiguous in the memory.