更新时间:2023-11-13 17:22:40
Keras 有一个 AveragePooling1D
层.如果您使用图形 API,您应该能够执行以下操作:
Keras has a layer AveragePooling1D
for that. If you use the graph API, you should be able to do something like:
model.add_node(AveragePooling1D(...),
inputs=['h0', 'h1', ..., 'hn'],
merge_mode='concat', ...)