Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name gpu_alloc_empty #5

Closed
genekogan opened this issue Nov 24, 2015 · 2 comments
Closed

ImportError: cannot import name gpu_alloc_empty #5

genekogan opened this issue Nov 24, 2015 · 2 comments

Comments

@genekogan
Copy link

i'm getting an import error on the gpu_alloc_empty in the following:

from theano.sandbox.cuda.basic_ops import (as_cuda_ndarray_variable,
                                           host_from_gpu,
                                           gpu_contiguous, HostFromGpu,
                                           gpu_alloc_empty)

the other modules by themselves work fine, just gpu_alloc_empty fails. i have cudnn installed and just reinstalled Theano with pip.

@genekogan
Copy link
Author

i figured it out. install the bleeding edge version of Theano instead of the latest on pip. can do via.

pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git

@dribnet
Copy link

dribnet commented Nov 24, 2015

FWIW: my version of Theano was initially too new (Theano/Theano@8d3a67b7) so I had to back-install the latest tagged release, which also worked for me.

pip uninstall theano
pip install --no-deps git+https://github.com/Theano/Theano.git@rel-0.7.1a1#egg=Theano==0.8.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants