바뀜
둘러보기로 가기
검색하러 가기
15번째 줄:
15번째 줄:
− !방법
23번째 줄:
22번째 줄:
− |
− +
− +
− |
87번째 줄:
84번째 줄:
− +
→에러
!과정
!과정
!설명
!설명
|-
|-
|사전준비
|사전준비
# <code>pip install tensorflow</code>를 할 때 <code>ERROR: Could not find a version that satisfies the requirement tensorflow</code>가 뜬다면 파이썬이 64bit용이 아니기 때문이다.(텐서플로우는 64bit 기반)
# <code>pip install tensorflow</code>를 할 때 <code>ERROR: Could not find a version that satisfies the requirement tensorflow</code>가 뜬다면 파이썬이 64bit용이 아니기 때문이다.(텐서플로우는 64bit 기반)
# cpu stable 버전이 요구하는 넘파이 버전이 일정 미만일 수 있다.
# cpu stable 버전이 요구하는 넘파이 버전이 일정 미만일 수 있다.
|-
|-
|
|GPU사용준비
|
|텐서플로우 2.4.1 기준으로 [https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal CUDA 10.1], [https://developer.nvidia.com/rdp/cudnn-archive cuDNN 7.6.4]를 설치해준다. CUDA는 그냥 설치하면 되고, cuDNN은 압축을 푼 후 내부의 파일들을 CUDA의 폴더에 복사해주면 된다. 기본경로는 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1 이다.
|}
|}
|-
|-
|
|
* CPU버전으로 실행(무시하고 진행하면 CPU버전으로 실행한다. 텐서플로우를 임포트 하기 전, 코드 상단에 os를 임포트하고 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'를 넣어주면 에러메시지도 없앨 수 있다. 부작용으로... 에러메시지를 못본다.(기본적인 에러메시지는 뜬다.))
* CPU버전으로 실행(무시하고 진행하면 CPU버전으로 실행한다. 텐서플로우를 임포트 하기 전, 코드 상단에 os를 임포트하고 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'를 넣어주면 에러메시지도 없앨 수 있다. 부작용으로... 에러메시지를 못본다.(기본적인 에러메시지는 뜬다.))
* GPU를 사용할 수 있는 환경 갖추기.(2.4.1 기준으로 [https://developer.nvidia.com/cuda-10.1-download-archive-base?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal CUDA 10.1], [https://developer.nvidia.com/rdp/cudnn-archive cuDNN 7.6.4]를 설치해준다.)
* GPU를 사용할 수 있는 환경 갖추기.(위 설치 참고.)
|-
|-
|AttributeError: module 'tensorflow' has no attribute 'Session'
|AttributeError: module 'tensorflow' has no attribute 'Session'