There seems no built-in support for Mean Pooling layer for RNN in Keras. Anyone knows how to wrap one?
http://deeplearning.net/tutorial/lstm.html
Keras has a layer AveragePooling1D for that. If you use the graph API, you should be able to do something like:
AveragePooling1D
model.add_node(AveragePooling1D(...), inputs=['h0', 'h1', ..., 'hn'], merge_mode='concat', ...)