Tensorflow未使用GPU编译

时间:2018-05-22 00:47:47

标签: tensorflow

我的操作系统是64位Windows 10,我刚刚使用Anaconda安装了GPU支持版本的tensorflow。当我尝试运行它时,我遇到了一些错误:

>>> import tensorflow as tf
>>> sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
2018-05-21 19:35:51.322771: I T:\src\github\tensorflow\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2
2018-05-21 19:35:55.372582: E T:\src\github\tensorflow\tensorflow\stream_executor\cuda\cuda_driver.cc:406] failed call to cuInit: CUDA_ERROR_NO_DEVICE
2018-05-21 19:35:55.414069: I T:\src\github\tensorflow\tensorflow\stream_executor\cuda\cuda_diagnostics.cc:158] retrieving CUDA diagnostic information for host: DESKTOP-IGTS77R
2018-05-21 19:35:55.440073: I T:\src\github\tensorflow\tensorflow\stream_executor\cuda\cuda_diagnostics.cc:165] hostname: DESKTOP-IGTS77R
Device mapping: no known devices.
2018-05-21 19:35:55.454801: I T:\src\github\tensorflow\tensorflow\core\common_runtime\direct_session.cc:284] Device mapping:

如何修复错误?我安装了CUDA9.0和CUDNN7.0,我的python版本是3.6。

0 个答案:

没有答案