1. RNN图片表示如下

image.png

2. python代码如下

image.png


参考:

http://karpathy.github.io/2015/05/21/rnn-effectiveness/

https://r2rt.com/recurrent-neural-networks-in-tensorflow-ii.html

http://blog.csdn.net/watkinsong/article/details/51773524