keunwoochoi / keras_callbacks_example

Keras callback example
56 stars 17 forks source link

Flatten dose not compatible with GlobalMaxPooling1D #1

Open sun9700 opened 8 years ago

sun9700 commented 8 years ago

Tensor with shape [batch_size,samples, feathers ] pass GlobalMaxPooling1D became [batch_size,feathers ] Then the Flatten complains: Exception: Input 0 is incompatible with layer flatten_1: expected ndim >= 3, found ndim=2

please add a parameter to keep the second dim=1

keunwoochoi commented 8 years ago

I don't use GlobalMAxPooling1D.