Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Keras 中似乎没有对 RNN 的平均池化层的内置支持。有人知道怎么包吗?
http://deeplearning.net/tutorial/lstm.html
Keras 为此提供了一个层AveragePooling1D。如果您使用图形 API,您应该能够执行以下操作:
AveragePooling1D
model.add_node(AveragePooling1D(...), inputs=['h0', 'h1', ..., 'hn'], merge_mode='concat', ...)