0

问候亲爱的社区,

我尝试使用 python keras 包,但出现此错误:我在 oracle-linux 虚拟机上运行它。它需要某种 GPU 盒子来做吗?

感谢您的帮助。

In [59]: from keras.models import Sequential#issue
    ...: 
Traceback (most recent call last):

  File "<ipython-input-59-0f55ca179bba>", line 1, in <module>
    from keras.models import Sequential#issue

  File "/home/oracle/anaconda/lib/python2.7/site-packages/keras/models.py", line 15, in <module>
    from .utils.layer_utils import container_from_config

  File "/home/oracle/anaconda/lib/python2.7/site-packages/keras/utils/layer_utils.py", line 10, in <module>
    from ..layers.convolutional import Convolution1D, Convolution2D, MaxPooling1D, MaxPooling2D, ZeroPadding2D

  File "/home/oracle/anaconda/lib/python2.7/site-packages/keras/layers/convolutional.py", line 6, in <module>
    from theano.sandbox.cuda import dnn

  File "/home/oracle/anaconda/lib/python2.7/site-packages/theano/sandbox/cuda/dnn.py", line 9, in <module>
    from theano.gof import Optimizer, local_optimizer, COp

ImportError: cannot import name COp

来自 dnn.py 的行

from theano.gof import Optimizer, local_optimizer, COp
4

0 回答 0