我有一个形状为 Q = (?,15,512) 的张量
Out = LSTM( 512 ,input_shape=(15,512) ,return_sequences='true') (Q)
外形是(?,?,512)
我知道第一个?是批量大小,但第二个是多少?
请您参考如下方法:
return_sequences=真
上面一行返回了完整的序列,也就是第二个参数。
Link to the docs
我有一个形状为 Q = (?,15,512) 的张量
Out = LSTM( 512 ,input_shape=(15,512) ,return_sequences='true') (Q)
外形是(?,?,512)
我知道第一个?是批量大小,但第二个是多少?
请您参考如下方法:
return_sequences=真
上面一行返回了完整的序列,也就是第二个参数。
Link to the docs