Import Error of GlobalAvaeragePooling2D

305 views
Skip to first unread message

Md Zahangir Alom

unread,
Dec 21, 2016, 10:19:08 AM12/21/16
to Keras-users
Hi everyone,

Hope you are doing great. I have been working with Keras (Backend Theano ) for few month. I have implemented several network structure using these framework.

However, currently I am implementing Dense CNN and All convnet, where I need to used "GlobalAveragePooling2D".  When I am going to execute my code getting following error.

ImportError : cannot import name GlobalAveragePooling2D.


Note: I have updated Keras and Theano... and check the pooling layer files contains the function named "GlobalAveragePooling2D"  ( Others function for pooling layer working properly)

Could you pleas help me to resolve this problem?

- zahangir

Walid Aly

unread,
Dec 22, 2016, 4:52:28 PM12/22/16
to Keras-users
Me too had the same error when I tried  the ode from

Daπid

unread,
Dec 22, 2016, 4:54:16 PM12/22/16
to Md Zahangir Alom, Keras-users
On 21 December 2016 at 16:19, Md Zahangir Alom <zaha...@gmail.com> wrote:
>
> ImportError : cannot import name GlobalAveragePooling2D.


Sounds like you have an old version. Try updating keras.

Walid Aly

unread,
Dec 23, 2016, 6:28:27 AM12/23/16
to Keras-users
Thanks David.
I updated and priblem solved
Reply all
Reply to author
Forward
0 new messages