记录一下,大佬的文章: https://blog.csdn.net/m0_49090516/article/details/113576003
安装1.x版本的tensorflow-gpu https://blog.csdn.net/huhuhuhu0908/article/details/113620668?ops_request_misc=&request_id=&biz_id=102&utm_term=tensorflow-gpu2.0%E8%83%BD%E4%B8%8D%E8%83%BD%E8%BF%90%E8%A1%8C1.0%E4%BB%A3%E7%A0%81&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-3-113620668.first_rank_v2_pc_rank_v29&spm=1018.2226.3001.4187
禁止tfv2版本的代码,使用v1版本的代码。只需要把第一行修改成
import tensorflow.compat.v1 as tf
tf.compat.v1.disable_eager_execution()
或
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
conda 从本地安装.tar.bz2文件命令:
conda install --use-local F:\ZDL\cudnn\xxxx.tar.bz2
将官网下载解压的cudnn配置到cudn上的代码:
sudo cp cuda/include/cudnn.h /usr/local/cuda/include/
sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64/
sudo chmod a+r /usr/local/cuda/include/cudnn.h
sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
```
再记录一篇大佬文章: 安装tensorflow-gpu=1.15.0
|