Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Theano 0.9.0 API change #7

Closed
ronggong opened this issue Mar 7, 2017 · 3 comments
Closed

Theano 0.9.0 API change #7

ronggong opened this issue Mar 7, 2017 · 3 comments

Comments

@ronggong
Copy link

ronggong commented Mar 7, 2017

Traceback (most recent call last):
File "/homedtic/rgong/DeepConvSep/trainCNN.py", line 42, in
import lasagne
File "/homedtic/rgong/keras_env/lib/python2.7/site-packages/lasagne/init.py", line 24, in
from . import layers
File "/homedtic/rgong/keras_env/lib/python2.7/site-packages/lasagne/layers/init.py", line 7, in
from .pool import *
File "/homedtic/rgong/keras_env/lib/python2.7/site-packages/lasagne/layers/pool.py", line 6, in
from theano.tensor.signal import downsample
ImportError: cannot import name downsample

Theano has changed its API for the 0.9.0 version. lasagne haven't updated yet.

max_pool_2D method doesn't exist anymore in ``downsample".

I found the solution for this issue in Theano/Theano#4337

@ghost
Copy link

ghost commented Mar 7, 2017

I use Theano-0.9.0rc1 with Lasagne-0.2.dev1.

And I don't get that error. Do you have those versions installed?

@ronggong
Copy link
Author

ronggong commented Mar 7, 2017

Theano on my machine is 0.9.0rc2

The documentation indicates this API change:

http://deeplearning.net/software/theano_versions/dev/library/tensor/signal/pool.html?highlight=pool_2d#theano.tensor.signal.pool.pool_2d

@nkundiushuti
Copy link
Contributor

I removed the maxpool layer in the training. however, we need to re-train the model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants