python - 如何在 Windows 中为 Tensorflow 设置 GPU (AMD Radeon R5 M330)
问题描述
我是 tensorflow 的新手,尝试在我的 Windows 笔记本电脑中安装 tensorflow 并配置内置的 AMD Radeon R5 M330,任何指南/步骤都会非常有帮助。
到目前为止,我已经安装了以下内容
pip install tensorflow
pip install tensorflow-gpu
pip install tf-nightly-gpu
导入 tf 时收到以下警告
>>>import tensorflow as tf
2021-07-27 14:11:41.339706: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2021-07-27 14:11:41.339901: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
提前致谢 !
解决方案
遵循这些说明。
“TensorFlow GPU 支持需要各种驱动程序和库。为了简化安装并避免库冲突,我们建议使用支持 GPU 的 TensorFlow Docker 映像(仅限 Linux)。此设置仅需要 NVIDIA® GPU 驱动程序。”
- 你将无法使用简单的pip
. 您需要 Nvidia GPU 驱动程序、CUDO 工具包、CUPTI 和 cuDNN SDK
推荐阅读
- python - 在python中将列表值一起添加?
- c++ - shared_ptr 在方法中填充的映射在调用者中返回为空
- angular - 如何导出角度项目以进行离线工作
- django - 在一篇文章中保存多个模型 - Django rest frameweok
- python - python CGI无需等待即可调用新的子进程
- javascript - 在`.then`之后没有运行Axios代码
- python - 在熊猫中使用带有元组列的查询
- batch-file - 将目录树复制到以今天日期命名的新目录
- spring - 一个 Spring 应用程序可以有两个 IoC 容器吗?
- java - 如何正确地将空项添加到 JavaFX 的 ComboBox