MichalDanielDobrzanski / DeepLearningPython

neuralnetworksanddeeplearning.com integrated scripts for Python 3.5.2 and Theano with CUDA support
MIT License
2.79k stars 1.27k forks source link

Avoid ImportError: cannot import name 'downsample' #2

Closed pa-m closed 7 years ago

pa-m commented 7 years ago

Hi, Since a change in theano 0.9, it seems that downsample.max_pool_2d has to be replaced with pool.pool_2d. Best regards Pascal Masschelier

MichalDanielDobrzanski commented 7 years ago

Updated and tested. Truly, Theano 0.9 brought name changes to pool_2d