완전히 동일한 에러는 아니지만, 아래와 같은 에러가 등장했다.
RuntimeError: Cannot initialize CUDA without ATen_cuda library. PyTorch splits its backend into two shared libraries: a CPU library and a CUDA library; this error has occurred because you are trying to use some CUDA functionality, but the CUDA library has not been loaded by the dynamic linker for some reason. The CUDA library MUST be loaded, EVEN IF you don't directly use any symbols from the CUDA library! One common culprit is a lack of -Wl,--no-as-needed in your link arguments; many dynamic linkers will delete dynamic library dependencies if you don't depend on any of their symbols. You can check if this has occurred by using ldd on your binary to see if there is a dependency on *_cuda.so library.
다행히도 Pytorch와 CUDA버전을 올려주니 에러없이 잘 동작하였다.
'개인공부 > Python' 카테고리의 다른 글
im2col 함수 (0) | 2022.01.18 |
---|---|
Pytorch - 텐서 조작하기 (0) | 2022.01.18 |
Python, Pytorch, Torchvision 다운그레이드 (0) | 2022.01.11 |
파라미터 저장을 위한 예제 (hdf5) (0) | 2021.12.20 |
(1) 변수와 리스트 (0) | 2021.12.14 |