Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/282.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 无法在anaconda tenserenv中运行卷积.py_Python_Tensorflow_Anaconda_Cudnn - Fatal编程技术网

Python 无法在anaconda tenserenv中运行卷积.py

Python 无法在anaconda tenserenv中运行卷积.py,python,tensorflow,anaconda,cudnn,Python,Tensorflow,Anaconda,Cudnn,我已经在一个名为tensorenv的anaconda环境中安装了tensorflow,为了测试安装,我尝试运行了一个示例convolutional.py,下面是一个例子 Initialized! E tensorflow/stream_executor/cuda/cuda_dnn.cc:346] Loaded cudnn library: 5005 but source was compiled against 4007. If using a binary install, upgrade

我已经在一个名为tensorenv的anaconda环境中安装了tensorflow,为了测试安装,我尝试运行了一个示例convolutional.py,下面是一个例子

Initialized!
E tensorflow/stream_executor/cuda/cuda_dnn.cc:346] Loaded cudnn library: 5005 but source was compiled against 4007.  If using a binary install, upgrade your cudnn library to match.  If building from sources, make sure the library loaded matches the version you specified during compile configuration.
F tensorflow/core/kernels/conv_ops.cc:457] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms) 
Aborted (core dumped)

初始化后,应开始培训,但出现此错误。请提供帮助

如果要使用cuDNN v5,则必须从源代码构建

根据文件:

仅当从源代码处安装时,才支持其他版本(Cuda toolkit>=7.0和cuDNN 6.5(v2)、7.0(v3)、v5)


它似乎想要cudnv4。如何指定我要使用cuDNN v5AFAIK,cuDNN v5当前不受支持。您必须使用cuDNN v4,而不是从源代码生成。。。这是否意味着我必须通过源代码安装tensorflow?这意味着你要克隆tensorflow github存储库,并直接编译它。查阅最简单的方法是将cudNN更改为v4。