我已经在名为 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)
初始化后应该开始训练,但出现此错误。请帮忙
答案1
看这里。软件包版本需要 Cudnnv4。因此
- 你切换到 cudnnv4
- 你可以从源安装 tensorflow,如上面的链接所示