Amn Kh Amn Kh - 1 year ago 554
Python Question

ImportError: No module named downsample

I am using Theano. The OS is Ubuntu. The Theano is UPTODATE. I am wondering why I am getting by

from theano.tensor.signal.downsample import max_pool_2d

ImportError: No module named downsample

Answer Source

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

from theano.tensor.signal.pool import pool_2d

After changing delete your theano cache with the command:

theano-cache purge
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download