What is num_units in tensorflow BasicLSTMCell?

后端 未结 11 1636
北恋
北恋 2020-12-12 10:13

In MNIST LSTM examples, I don\'t understand what \"hidden layer\" means. Is it the imaginary-layer formed when you represent an unrolled RNN over time?

Why is the <

11条回答
  •  Happy的楠姐
    2020-12-12 10:51

    An LSTM keeps two pieces of information as it propagates through time:

    A hidden state; which is the memory the LSTM accumulates using its (forget, input, and output) gates through time, and The previous time-step output.

    Tensorflow’s num_units is the size of the LSTM’s hidden state (which is also the size of the output if no projection is used).

    To make the name num_units more intuitive, you can think of it as the number of hidden units in the LSTM cell, or the number of memory units in the cell.

    Look at this awesome post for more clarity

提交回复
热议问题