我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')? –