请参考博客,https://www.cnblogs.com/mfryf/p/7904017.html,或者直接看原文Understanding LSTM Networks这篇博客。
讲解的很详细,仔细看看很有帮助。