我粘贴在循环层的 Keras 文档下方
model= Sequential()
model.add(LSTM(32, input_shape=(10, 64)))
# now model.output_shape == (None, 32)
# note: `None` is the batch dimension.
LSTM 32 的第一个参数在这里是什么意思?它是否创建了 32 个 LSTM 块(我的块是指由输入、遗忘和输出门组成)?您能否解释一下第一个参数的含义以及当返回序列为 True 和返回序列为 False 时它对 LSTM 的输出维度有何贡献?



