【问题标题】:Cannot run convolutional.py in anaconda tenserenv无法在 anaconda tenserenv 中运行convolutional.py
【发布时间】:2016-06-15 08:23:09
【问题描述】:

我已经在名为 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 v4。如何指定我要使用 cuDNN v5
  • AFAIK,目前不支持 cuDNN v5。您将不得不改用 cuDNN v4

标签: python tensorflow anaconda cudnn


【解决方案1】:

如果你想使用 cuDNN v5,你必须从源代码构建。

根据文档:

仅在从源安装时才支持其他版本(Cuda 工具包 >= 7.0 和 cuDNN 6.5(v2)、7.0(v3)、v5)

【讨论】:

  • 从源代码构建...是否意味着我必须通过源代码安装 tensorflow?
  • 表示你克隆了tensorflow github仓库,直接编译。参照。 the doc。最简单的方法是将 cudNN 更改为 v4。
猜你喜欢
  • 1970-01-01
  • 2021-02-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-09-23
  • 2014-10-01
  • 1970-01-01
相关资源
最近更新 更多