LSTM Output
Run an LSTM model on input sequences and retrieve the output.
We'll cover the following...
Chapter Goals:
- Compute the output of your LSTM model
A. TensorFlow implementation
In TensorFlow, the way we create and run an RNN is with the function tf.keras.layers.RNN
. The function takes in two required arguments. The first is the cell object that is used to create the RNN (e.g. an LSTMCell
, StackedRNNCells
, etc.). The second is the batch of input sequences, which are usually first converted to word embedding sequences.
Of the keyword arguments for ...