반응형
assertion failed: [0] [Op:Assert] name: EagerVariableNameReuse
인터넷 상에서 여러가지 해결책으로 나오고 있는데
tensorflow 버전을 확인 하면서 downgrade하지 않으면 upgrade등 여러가지 방법이 나온다.
tensorflow버전과 상관 없이 해결 방법이 있다.
오류 해결 방법:
import os
os.environ["CUDA_VISIBLE_DEVICES"] = ""
import os
os.environ["CUDA_VISIBLE_DEVICES"] = ""
이 코드를 실행하고도 같은 경우가 났을 경우에는 kernel restart하고 다시 실행 하면 된다.
gpu를 사용하지 않으면 오류를 해결할 수 있다.
반응형
'Deep learning > 오류해결' 카테고리의 다른 글
konlpy okt java (0) | 2021.04.01 |
---|---|
assertion failed: [0] [Op:Assert] name: EagerVariableNameReuse (0) | 2021.03.26 |
20201125- No module named 'png' (0) | 2020.11.25 |
20201125- IProgress not found. Please update jupyter and ipywidgets (0) | 2020.11.25 |
20201112-django pytorch cuda out of memory (0) | 2020.11.12 |