Combined State
Combine the final states for a BiLSTM into usable initial states.
We'll cover the following...
We'll cover the following...
Chapter Goals:
- Combine the final states for each BiLSTM layer
A. LSTMStateTuple initialization
We initialize an LSTMStateTuple object with a hidden state (c) and state output (h).
Below we show an example of initializing an LSTMStateTuple object using the final forward and backward states from a single layer BiLSTM encoder.
In the above example, we combined the BiLSTM forward and ...