Kaixhin/dockerfiles

[Theano] ValueError: Invalid value ("cpu") for configuration variable "gpu". Valid options start with one of "device", "opencl", "cuda"

RdlP opened this issue · 0 comments

RdlP commented

I use the dock as follow:

sudo nvidia-docker run -it kaixhin/cuda-theano:8.0

and when I try to test theano as follow:

python -c "import theano"

I get the following error

root@57ec910ade69:/# python2 -c "import theano"Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/theano/init.py", line 67, in
from theano.configdefaults import config
File "/usr/local/lib/python2.7/dist-packages/theano/configdefaults.py", line 113, in
in_c_key=False)
File "/usr/local/lib/python2.7/dist-packages/theano/configparser.py", line 285, in AddConfigVar
configparam.get(root, type(root), delete_key=True)
File "/usr/local/lib/python2.7/dist-packages/theano/configparser.py", line 333, in get
self.set(cls, val_str)
File "/usr/local/lib/python2.7/dist-packages/theano/configparser.py", line 344, in set
self.val = self.filter(val)
File "/usr/local/lib/python2.7/dist-packages/theano/configdefaults.py", line 100, in filter
% (self.default, val, self.fullname)))
ValueError: Invalid value ("cpu") for configuration variable "gpu". Valid options start with one of "device", "opencl", "cuda"