plt.imshow 함수 실행시 아래와 같은 에러가 뜬다
에러 로그를 확인하면
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.
이렇게 뜬다
라이브러리가 여러개 충돌이 나서 커널이 죽는다고 판단됨
[해결책 1]
동시에 여러개가 실행되도록 환경변수를 수정해주면 된다.
import os
os.environ["KMP_DUPLICATE_LIB_OK"]="TRUE"
[해결책2]
nomkl 라이브러리를 설치해준다.
mkl라이브러리가 여러곳에서 작동하면서 문제가 생긴다
mkl중복 실행을 막기위해 nomkl을 설치해서 막아준다
conda install nomkl
[해결책3]
넘파이 버전을 낮춰준다. 아마도 높은 버전이 나오면서 충돌이 생기는 듯
그런데 이건 넘파이를 다시 설치하는거라 비추
pip install -U numpy==1.16.5
'Debug(디버그)' 카테고리의 다른 글
loss.item 을 쓰는 이유 loss값을 기록할때 (0) | 2020.08.04 |
---|