首先是建立在安装了CPU版本的基础上。

一 安装CUDA

1.准备好NVIDIA的显卡,下载安装CUDA:https://developer.nvidia.com/cuda-downloads

2.安装好之后把CUDA安装目录下的bin和lib\x64添加到Path环境变量中

Windows GPU 版本下的Tensorflow的安装

附上cuda历史各个版本下载链接方便大家使用

https://developer.nvidia.com/cuda-toolkit-archive

二 安装cuDNN

1.cuDNN下载:https://developer.nvidia.com/rdp/cudnn-download,需要注册账号才能下载

2.解压压缩包,把压缩包中的bin, include,lib中的文件分别拷贝到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2目录下对应的目录中

3.把C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\extras\CUPTI\lib64\cupti64_102.dll拷贝到C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.2\bin

三 安装 tensorflow-gpu

1.pip uninstall tensorflow

2.pip instal tensorflow-gpu

 

相关文章:

  • 2021-11-24
  • 2021-04-04
  • 2021-08-04
  • 2021-11-05
  • 2021-11-07
  • 2021-10-18
  • 2019-03-26
  • 2021-08-14
猜你喜欢
  • 2021-09-25
  • 2021-11-14
  • 2022-12-23
  • 2021-08-31
  • 2021-08-31
  • 2021-09-09
相关资源
相似解决方案