窗户上的gpu上的keras python 3.7.13
最近,我不得不完全重新安装我的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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,这是解决方案:
Python 3.7.13需要TensorFlow-GPU 2.1.0来检测GPU。
因此,正确的版本是:
,其起作用。请注意,出于某种原因,在我的情况下,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 :
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.