【Tensorflow】BUG记录与解决方法

建议使用 Ctrl+F 查找报错信息。


ERROR: Could not find a version that satisfies the requirement tensorflow-gpu==1.1.0

原因:用同样的命令 pip install tensorflow-gpu==1.1.0 在别的服务器都可以安装,现在竟然报错,查了原因是因为 Python 版本的问题
解决:当前用的是 Python 3.7.4,更改为 Pyhton 2.7 即可

ImportError: libcudnn.so.5: cannot open shared object file: No such file or directory

原因:1)环境变量里关于 cuda 的路径设置错误;2)tensorflow 与 cuda 版本不匹配
解决:先看自己路径对不对,记得 source 更新一下,查一下自己的 tensorflow-gpu 版本应该用什么版本的 cuda 和 cudnn,参考:cuda和tensorflow-gpu对应版本的安装及测试

Resource exhausted: OOM when allocating tensor with shape

原因:1)batch size 太大;2)GPU 的显存太小,或者剩余的显存太少
解决:调整 batch,或者等 GPU 空下来

InternalError: Dst tensor is not initialized

原因:一般是 GPU 内存耗尽
解决:用 export CUDA_VISIBLE_DEVICES=1,设置仅显卡设备 GPU=1 可见

Loaded runtime CuDNN library: 5005 (compatibility version 5000) but source was compiled with 5110 (compatibility version 5100).  If using a binary install, upgrade your CuDNN library to match.  If building from sources, make sure the library loaded at runtime matches a compatible version specified during compile configuration.

原因:cudnn 版本不对
解决:换对应版本 cuda和tensorflow-gpu对应版本的安装及测试

PermissionError: [Errno 13] Permission denied: '/tmp/.tensorboard-info/pid-77691.info'

原因:没有访问权限。
解决:加上权限即可,chmod a+w /tmp/.tensorboard-info

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

不吃饭就会放大招

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值