我有一个形状为 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/