pytorch
검색결과
1
개
.contiguous
Pytorch 를 사용하며 Tensor 의 차원을 바꾸거나 변화시키는 등의 조작을 할 떄, 가끔씩 다음과 같은 에러가 발생할 때가 있습니다. RuntimeError: input is not contiguous contiguous 를 Pytorch 공식 문서에서 살펴보면 다음과 같은 설명이 나옵니다. Returns a contiguous in memory tensor containing the same data as self tensor. If self tensor is already in the specified memory format, this function returns the self tensor. contiguous 란 어떤 의미일까? contiguous 의 의미는 인접한, 근접한 이라고 한다..
pytorch
2023. 7. 12. 20:05



