I have a Keras model that includes some LSTM layers. I know that I can get the weights of the LSTM layer through the get_weights() method, and the result is a list made of three elements: kernel, recurrent kernel and bias.
As the documentation state, each element includes the weights for the 4 gates in the LSTM layer. However, it does not state which is the order in which they are stored. For instance, if LSTM layer has N units, the bias vector will be made of 4*N elements. Which of those elements correspond to the 1st/2nd/3rd/4th gate?