我正在使用Theano。操作系统是Ubuntu。 Theano是UPTODATE。我想知道为什么我通过from theano.tensor.signal.downsample import max_pool_2d
命令。ImportError:没有模块名为downsample
ImportError: No module named downsample
。
我正在使用Theano。操作系统是Ubuntu。 Theano是UPTODATE。我想知道为什么我通过from theano.tensor.signal.downsample import max_pool_2d
命令。ImportError:没有模块名为downsample
ImportError: No module named downsample
。
的downsample
模块已被移动到pool
,所以尽量声明为:
theano-cache purge
尝试使用此更新Theano:
from theano.tensor.signal.pool import pool_2d
改变用命令删除theano缓存后链接。
pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip
更新theano和烤宽面条
pip install --upgrade https://github.com/Theano/Theano/archive/master.zip
pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip
为我工作,谢谢。 –
同样的问题[theano v.0.9.0dev1.dev-2 ...]改变
from theano.tensor.signal import downsample
pooled_out = downsample.max_pool_2d(...)
到
from theano.tensor.signal import pool
pooled_out = pool.pool_2d(...)
在/lib/python2.7/site-packages/lasagne/layers/pool.py
'theano缓存清除 文件 “”,行1 theano-cache purge ^ SyntaxError:invalid syntax' –
请尝试执行以下操作([code here](https://gist.github.com/anonymous/afa341ef477eb95a1ebcda44f7f967b6))以查找th的位置e缓存,这就是你想要删除的内容,以确保更新导入。 –
谢谢。它给了我一个地址。接下来是什么? –