yup got it now, thanks…



rnn = nn.RNNCell(10, 20)
input = Variable(torch.randn(6, 3, 10))
hx = Variable(torch.randn(3, 20))
output = []
for i in range(6):
…     hx = rnn(input[i], hx)  # this is recurrence
…     output.append(hx)