Search code examples
pythonneural-networkkerastheanolstm

Which version of LSTMs are implemented in Keras?


Which exact LSTM (Long-Short-Term-Memory) neural network model does the Keras Python library implement? Is it the "basic" version outlined here, or if it is a variation such as Gers & Schmidhuber, which one is it? In particular, I need to know the exact internal connections as well as their respective activation functions.

I would like to know this because I am training a model using Keras which I would like to use for prediction on a device on which Python is not available - therefore I need to implement my own LSTM (and use the weights from the trained Keras model).


Solution

  • Ok, it looks like they are using Hochreiter 1997 - at least it says so in a comment in the code.