ImportError: No module named downsample

前端 未结 4 622
孤独总比滥情好
孤独总比滥情好 2021-02-10 06:05

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 command.

4条回答
  •  醉酒成梦
    2021-02-10 07:02

    Same issue [theano v.0.9.0dev1.dev-2...]; changed

    from theano.tensor.signal import downsample
    pooled_out = downsample.max_pool_2d( ... )
    

    to

    from theano.tensor.signal import pool
    pooled_out = pool.pool_2d( ... )
    

    in /lib/python2.7/site-packages/lasagne/layers/pool.py

提交回复
热议问题