개발 티끌 팁
텐서플로 간단 설치
오늘의룡
2017. 11. 18. 10:48
1. 설치
- Anaconda3 5.x 64비트 버전 설치 (파이썬 3.6 포함)
2. 텐서플로 설치
- GPU가 없어 CPU 버전으로 ㅠㅠ
- Anaconda Prompt 관리자 권한으로 실행
- pip install tensorflow 입력 - 자동으로 설치됨
3. 설치확인
import tensorflow as tf
print("tf.test.is_built_with_cuda():", tf.test.is_built_with_cuda())
print("tf.test.is_gpu_available():", tf.test.is_gpu_available())
# Undocumented feature
from tensorflow.python.client import device_lib as _device_lib
print(_device_lib.list_local_devices())
4. 결과
tf.test.is_built_with_cuda(): False
tf.test.is_gpu_available(): False
[name: "/device:CPU:0"
device_type: "CPU"
memory_limit: 268435456
locality {
}
incarnation: 14260437998891284931
]
반응형