参考文章[https://www.youkuaiyun.com/article/2015-09-14/2825693]
原文链接[https://apaszke.github.io/lstm-explained.html]
1.定义输入
-- there will be 4*n+1 inputs
local inputs = {} #创建一个空的table
table.insert(inputs, nn.Identity()()) -- x
for L = 1, n do
# nn.Identity() - 传递输入(用来存放输入数据)
table.insert(inputs, nn.Identity<