ImportError: cannot import name downsample
SeekPoint opened this issue · 6 comments
rzai@rzai00:/prj/planetoid$ python test_trans.py/prj/planetoid$
Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled, cuDNN 5005)
Traceback (most recent call last):
File "test_trans.py", line 3, in
from trans_model import trans_model as model
File "/home/rzai/prj/planetoid/trans_model.py", line 2, in
import lasagne
File "/usr/local/lib/python2.7/dist-packages/lasagne/init.py", line 19, in
from . import layers
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/init.py", line 7, in
from .pool import *
File "/usr/local/lib/python2.7/dist-packages/lasagne/layers/pool.py", line 6, in
from theano.tensor.signal import downsample
ImportError: cannot import name downsample
rzai@rzai00:
I think you can re-install lasagne, http://lasagne.readthedocs.io/en/latest/user/installation.html
it works!
可以说一下你是怎么解决的吗,我也遇到了这个问题
Try reintsalling or upgrading lasagne.
It works,thank you!
Commented out :
“from theano.tensor.signal.pool import downsample”
and change this:
"from theano.tensor.signal.pool import pool_2d"