tensorflow - tensorflow BasicLSTMCell中的num_units是什么?

标签 tensorflow neural-network lstm recurrent-neural-network

在 MNIST LSTM 示例中,我不明白“隐藏层”是什么意思。它是当你表示随着时间推移展开的 RNN 时形成的假想层吗?

为什么在大多数情况下num_units = 128

最佳答案

来自this brilliant article

num_units can be interpreted as the analogy of hidden layer from the feed forward neural network. The number of nodes in hidden layer of a feed forward neural network is equivalent to num_units number of LSTM units in a LSTM cell at every time step of the network.

请参阅image那里也有!

enter image description here

关于tensorflow - tensorflow BasicLSTMCell中的num_units是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37901047/

相关文章:

machine-learning - 使用单个时间信号输入的 LSTM 多步预测

python - Tensorflow:矩阵乘法和加法期间的nan

python - 对于 tensorflow 中的二进制分类,成本函数始终返回零

tensorflow - 如何在 TensorFlow 中可视化 BPTT 梯度

python - Keras + LSTM/RNN : trouble with dimensionality of `X` 's for new predictions

neural-network - 神经网络有没有通用的格式

python - 参数无效 :Not enough time for target transition sequence

tensorflow - 如何将VGG16中的输入 channel 形状从(224, 224, 3)替换为(224, 224, 1)?

python - TensorFlow:将 tf.Dataset 转换为 tf.Tensor

neural-network - [torch]如何在nn模型中读取权重