ImportError: no module named downsample

I am using Theano. OS - Ubuntu. Theano - UPTODATE. I wonder why I get a command from theano.tensor.signal.downsample import max_pool_2d.

ImportError: No module named downsample.

+4
source share
4 answers

The module has downsamplebeen moved to pool, so try declaring it as:

from theano.tensor.signal.pool import pool_2d

After changing the removal of the anano cache using the command:

theano-cache purge
+2
source

update theano and lasagne

pip install --upgrade https://github.com/Theano/Theano/archive/master.zip
pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip

Lasagna against possible version mismatch for Theano version (Windows)

+4
source

Theano, .

pip install --upgrade https://github.com/Lasagne/Lasagne/archive/master.zip
0

[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

0

Source: https://habr.com/ru/post/1654628/


All Articles