theano-cuda relates to the installation, configuration, and use of the CUDA backend for Theano
Questions tagged [theano-cuda]
144 questions
2
votes
0 answers
Enabling GPU with theano generates Exception
I have followed the steps from here to enable gpu with theano on an Ubuntu 16.04 machine. I installed cuda toolkit, cudnn, drivers but I am still not able to get it to work. And when I run:
from theano.sandbox import cuda
cuda.use("gpu0")
I get the…

A_Matar
- 2,210
- 3
- 31
- 53
2
votes
1 answer
Train two models on two GPUs
I have two models (theano scripts) I want to train and evaluate.
I have two GPUs I can use to train them.
How can I run a model on each GPU at the same time?

circuitdesigner5172
- 125
- 7
2
votes
0 answers
error message of WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu0 is not available
I have installed theano using pip install theano, which was finished successfully. After typing import theano, I got the following warning message
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu0 is not available (error: Unable to…

user288609
- 12,465
- 26
- 85
- 127
2
votes
2 answers
AttributeError: module 'theano' has no attribute 'tests'
I am trying to use theano gpu on my ubuntu, but each time after it running one time successfully, it will give me the error like this when I try to run next time. No idea why, could anyone help me ?
import theano
Traceback (most recent call…

Yaohui WANG
- 21
- 3
2
votes
2 answers
`No module named nose_parameterized` during theano installation
At the moment I am trying to install theano on my ubuntu 16.04 system with cuda support. The installation process itself went well until I tried to test the installation:
python -c "import theano; theano.test()"
The last few lines of the output…

dimpol
- 545
- 9
- 21
2
votes
0 answers
Intermediate layer in keras to fetch the weights, convert and feed to the network
I have custom layer model using graph structure in keras. I want to add an intermediate layer between each pair of existing layer. The function of this layer will be to add some noise similar to GaussianNoise layer provided by keras.
I want to…

blackbug
- 1,098
- 3
- 13
- 40
2
votes
1 answer
Theano Not Able To Find Gpu - Ubuntu 16.04
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available (error: cuda unavailable)
I get this error when trying to run any sample Theano program.
I have tried all the suggested fixes provided in this thread.
nvcc…

rgalbo
- 4,186
- 1
- 19
- 29
2
votes
1 answer
theano - use external GPU only for ML and integrated GPU for display
I have a CPU with integrated GPU. I also have an external GPU that i have been using for ML. What i want is to use the integrated GPU only for display and dedicate the external GPU to NN training (in order to free some memory).
I have set at the…

Christos Baziotis
- 5,845
- 16
- 59
- 80
2
votes
1 answer
Theano fails to be imported with theano configuration cnmem = 1
Theano fails to be imported with theano configuration cnmem = 1
Any idea how to make sure the GPU is totally allocated to the theano python script?
Note: Display is not used to avoid its GPU usage
File: .theanorc
cnmem = 1
File: test.py
print…

Karim
- 1,526
- 4
- 13
- 16
2
votes
1 answer
Theano: GPU Usage on a New Jetson TX1
(Very long error messages in the question below. TL;DR, here is the specific question: Why does this test code not execute on the TX1's GPU, and what do I need to do to make it do so?)
I have just flashed and installed a brand new Nvidia Jetson…

Novak
- 4,687
- 2
- 26
- 64
2
votes
1 answer
Installing cuDNN for Theano without root access
Can I install cuDNN locally without root access ?
I don't have root access to a linux machine I am using (the distro is openSuse), but I have CUDA 7.5 already installed.
I am using Theano and I need cuDNN to improve the speed of the operations on…

IssamLaradji
- 6,637
- 8
- 43
- 68
2
votes
1 answer
Theano falls back to CPU
I am training a model in Theano 0.9 and Lasagne 0.1 and want to run it on GPU. I've set THEANO_FLAGS as follows:
THEANO_FLAGS=device=gpu0,force_device=True,floatX=float64
Theano prints it is using GPU
Using gpu device 0: GeForce GTX 980 Ti (CNMeM…

yazfield
- 1,233
- 11
- 18
2
votes
1 answer
'Failed to compile cuda_ndarray.cu' when importing theano, 'cuda_runtime.h: No such file or directory'
I am using ubuntu 14.04 with theano 0.8.2 installed. When I ran import theano in my gpu_tesy.py, there came ~5300 lines of codes and:
5367 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=79…

Alex Wenxin Xu
- 311
- 1
- 2
- 8
2
votes
2 answers
Unknown CUDA error when importing theano
In python, after importing theano, I get the following:
In [1]: import theano
WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not available
(error: Unable to get the number of gpus available: unknown error)
I'm running this on…

f34r51n
- 21
- 1
2
votes
1 answer
How the check that theano is only using FP32?
In my .theanorc file I have set the parameter...
[global]
floatX = float32
However when I run keras with the theano backend and make calls to model.predict the numpy datatype of the returned array is always of type FP64 not FP32. I am not sure if…

chasep255
- 11,745
- 8
- 58
- 115