我theano没有signal.conv
模块Theano缺少signal.conv模块
import theano.tensor.signal.conv
>>AttributeError: 'module' object has no attribute 'conv'
我theano的版本是 '0.7.0'。我试图升级pip install theano --upgrade
,它告诉我我已经是最新的了。我如何获得转换模块?
PS:我甚至通过做sudo pip install --upgrade --no-deps git+git://github.com/Theano/Theano.git
更新到开发版本,仍然没有signal.conv
!
如果我做theano.tensor.signal.__file__
我得到了我的文件conv.py和downsample.py同一文件夹中的文件路径/usr/local/lib/python2.7/dist-packages/theano/tensor/signal/__init__.pyc
我可以sucessfuly打电话theano.tensor.signal.downsample
但不theano.tensor.signal.conv
----安装在VIRTUALENV ----
我试图重现上的virtualenv错误:
virtualenv --no-site-packages myenv
cd myenv
source bin/activate
pip install numpy
pip install scipy
pip install theano
python
import theano
theano.tensor.signal.conv
>>AttributeError: 'module' object has no attribute 'conv'
我对Ubuntu的14.04 64位,蟒蛇2.7.6
我刚刚安装了0.7.0版本的Theano,并且该模块对我来说很好。 'theano.tensor.signal .__ file__'的结果是否匹配'pip'安装Theano的结果?你能否用virtualenv重现这个问题,并在问题中添加重现问题的命令列表? –
@DanGetz我编辑了我的问题。 –
你试过'import theano'然后'import theano.tensor.signal.conv'('tensor'不会隐式地导入'signal'或'signal.conv')? –