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

no sandbox.cuda #109

Open
yuval-harpaz opened this issue Sep 12, 2017 · 0 comments
Open

no sandbox.cuda #109

yuval-harpaz opened this issue Sep 12, 2017 · 0 comments

Comments

@yuval-harpaz
Copy link

yuval-harpaz commented Sep 12, 2017

Hi
following the Guided Backpropagation recipe/example I had error for:
if theano.sandbox.cuda.cuda_enabled because, I guess, I use newer theano / lasagne versions with CuDNN etc. I have no cuda under theano.sandbox. two solutions:

  1. skip the if and use the else option: maybe_to_gpu = lambda x: x
  2. use gpu with gpuarray.dnn
    maybe_to_gpu = theano.gpuarray.dnn.as_gpuarray_variable x = maybe_to_gpu(x,None)
    and then a few lines below (as above, add None as second input argument):
    outp = maybe_to_gpu(self.nonlinearity(inp),None)
    Thanks for the examples
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

1 participant