python - 返回序列lstm keras的输出是什么

标签 python keras lstm

我有一个形状为 Q = (?,15,512) 的张量

Out  = LSTM( 512  ,input_shape=(15,512) ,return_sequences='true') (Q)

外形是(?,?,512)

我知道第一个?是批量大小,但第二个是多少?

最佳答案

return_sequences=真

上面一行返回了完整的序列,也就是第二个参数。
Link to the docs

关于python - 返回序列lstm keras的输出是什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49566869/

相关文章:

python - xterm python 子进程

python - Pandas:将 DataFrameGroupBy 对象转换为所需格式

python - django模型默认=""和 "This field cannot be blank"

python - 具有不同序列长度的多对多序列预测

python - 如何轻松地将数组的额外元素解压缩到单个变量中?

python - 如何使 Keras 神经网络在 Iris 数据上优于逻辑回归

python - Keras:如何存储每个纪元后的历史记录?

python - 将多个 ImageDataGenerator 的输出合并到一个张量

machine-learning - 将静态数据(不随时间变化)添加到 LSTM 中的序列数据

python - 有状态 LSTM 和流预测