问题描述
我正在尝试导入theano,但它直接导入了GPU。我想在cpu上导入theono。 这是我尝试导入theano时的错误
--------------------------------------------------------------------------------------------------
~\Anaconda3\lib\site-packages\lasagne\layers\dnn.py in <module>()
1 import theano
----> 2 from theano.sandBox.cuda import dnn
3
4 from .. import init
5 from .. import nonlinearities
~\Anaconda3\lib\site-packages\theano\sandBox\cuda\__init__.py in <module>()
57 # is_nvcc_available called here to initialize global vars in
58 # nvcc_compiler module
---> 59 nvcc_compiler.is_nvcc_available()
60
61 # Compile cuda_ndarray.cu
~\Anaconda3\lib\site-packages\theano\sandBox\cuda\nvcc_compiler.py in is_nvcc_available()
28
29 """
---> 30 if not config.cuda.enabled:
31 return False
32
AttributeError: 'SubObj' object has no attribute 'enabled'
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)