窗户上的gpu上的keras python 3.7.13

发布于 2025-02-12 09:15:08 字数 420 浏览 0 评论 0原文

最近,我不得不完全重新安装我的Python发行版,由于某些原因,我无法再在GPU上运行Keras。

我遵循我可以在gpu上运行keras型号吗?但是由于某种原因,我在尝试列出设备时看不到我的GPU。

我的版本是:

  • TensorFlow& TensorFlow-GPU:2.3.0
  • Keras:2.3.1
  • CudatoolKit:11.3.1

我还没有安装Cudnn,因为指令对我来说有点模糊:我是否必须在CudatoolKit目录中安装它?是否需要在GPU上运行?

谢谢

I had to reinstall completely my python distribution lately and for some reasons I cannot run keras on GPU anymore.

I followed the instructions from Can I run Keras model on gpu? but for some reason, I do not see my GPU when trying to list the devices.

my versions are :

  • tensorflow & tensorflow-gpu : 2.3.0
  • keras : 2.3.1
  • cudatoolkit : 11.3.1

I have not installed cudnn yet as the instructions are a bit blurry for me : do I have to install it in the cudatoolkit directory ? Is it required to run on GPU ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

戒ㄋ 2025-02-19 09:15:08

好的,这是解决方案:

Python 3.7.13需要TensorFlow-GPU 2.1.0来检测GPU。
因此,正确的版本是:

  • Python 3.7.13
  • Tensorflow 2.1.0
  • Keras 2.3.0
  • Cudnn 7.6.5
  • CudatoolKit 10.1.243

,其起作用。请注意,出于某种原因,在我的情况下,TensorFlow下载了TensorFlow-op-obistor 2.6.0。我必须降级到2.1.0才能使Spyder运行。

OK so here is the solution :

Python 3.7.13 requires tensorflow-gpu 2.1.0 to detect gpu.
So the correct set of versions is :

  • Python 3.7.13
  • tensorflow 2.1.0
  • keras 2.3.0
  • cudnn 7.6.5
  • cudatoolkit 10.1.243

with this it works. Be careful that for some reason, in my case tensorflow downloaded tensorflow-estimator 2.6.0. I had to downgrade to 2.1.0 to get spyder running.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文