tensorflow - 如何使用 tensorflow-gpu?
问题描述
我正在尝试将我的 GPU 用于 keras-tensorflow。但是我找不到GPU。
import tensorflow as tf
print("Num GPU Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
输出:Num GPU 可用:0
当我试图找到CPU时,
import tensorflow as tf
print("Num CPU Available: ", len(tf.config.experimental.list_physical_devices('CPU')))
输出:Num CPU 可用:1
有人可以解释有什么区别吗?如何使用我的 GPU?我有 2 个“GT 750M”GPU。
我安装了 CUDA v10.1 和 cuDNN-10.1-windows7-x64-v7.6.5.32.zip。我也在使用 tensorflow 1.14.0 和 numpy 1.16.4
解决方案
推荐阅读
- powershell - 从 msi 包执行 powershell 时启动进程“msiexec.exe”失败
- javascript - 如何使用 Uc turdo mobile 修复 base64 图像下载
- android - 如何计算此处地图中的行驶距离
- symfony - Symfony:如何使用多个邮件程序?
- python - 如何在文本文件中提取局部最大值?Python
- c# - 当客户端未经授权时,如何在 .NET core restapi 中返回 404 而不是 401?
- python - OpenCV:压缩后图像大小增加
- excel - VBA 显示错误“应用程序定义或对象定义错误”
- javascript - 如何使用 Javascript 关闭按钮下拉菜单
- php - $_SERVER['HTTP_REFERER'] 跨域问题