728x90 반응형 transpose1 [DL] Tensor: Transpose and Permute TransposeTranspose(전치)의 linear algebra에서의 정의는 다음과 같음.Given an m x n matrix A,the transpose of A is the n x m matrix,denoted by AT whose columns are formed from the corresponding rows of A.간단하게 말하면 행과 열을 바꾸는 처리이다. Tensor의 경우rank가 2 보다 클 수 있으며 해당 rank의 수만큼 축이 있다.때문에Tensor에서의 transpose는 여러 축들 중 2개를 서로의 위치를 바꾸는 것이라고 보면 된다. 주의할 것은numpy와 pytorch의 경우, aixs(축)만 변경된 것이지, 여전히 같은 데이터 (the same underlying .. 2024. 3. 16. 이전 1 다음 728x90 반응형