简体   繁体   English

theano.sandbox.cuda 似乎是旧的 GPU 后端并从 Theano 中删除

[英]theano.sandbox.cuda seems to be old GPU back-end and removed from Theano

I'm getting an error message about old GPU back-end when I was trying to run rnn.py on returnn github page.当我尝试在返回的 github 页面上运行 rnn.py 时,我收到一条关于旧 GPU 后端的错误消息。 " https://github.com/rwth-i6/returnn " " https://github.com/rwth-i6/returnn "

Here's the error message:这是错误消息:

SkipTest: You are importing theano.sandbox.cuda. SkipTest:您正在导入 theano.sandbox.cuda。 This is the old GPU back-end and is removed from Theano.这是旧的 GPU 后端,已从 Theano 中删除。 Use Theano 0.9 to use it.使用 Theano 0.9 来使用它。 Even better, transition to the new GPU back-end!更好的是,过渡到新的 GPU 后端! See https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29

Please read the documentation .请阅读文档 You should do this:你应该做这个:

pip install -r requirements.txt

This makes sure that you have the right Theano version (0.9.0).这可确保您拥有正确的 Theano 版本 (0.9.0)。

But also, you probably want to use the TensorFlow backend now.而且,您现在可能想使用 TensorFlow 后端。 (If you are already doing this, you might also just ignore the Theano warning. Or install Theano 0.9.0 if it annoys you. We want to remove the Theano dependency in the future when you are only using TensorFlow.) (如果你已经这样做了,你也可以忽略 Theano 警告。或者如果它惹恼你,请安装 Theano 0.9.0。当你只使用 TensorFlow 时,我们希望将来删除 Theano 依赖项。)

Although it is an old post, I drop my answer for future users.虽然这是一篇旧帖子,但我放弃了对未来用户的回答。 Just for your information, I got the same error in another project.仅供参考,我在另一个项目中遇到了同样的错误。 This solved my problem:这解决了我的问题:

pip install theano==0.9.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM