Hi,
I am new to PYTORCH. I am trying to use ‘nn.Sequential’ to build a single layer LSTM (just for the sake of trial)
rnn = nn.Sequential(
    nn.LSTM(10, 20, 2)
 )
input = Variable(torch.randn(100, 3, 10))
h0 = Variable(torch.randn(2, 3, 20))
output, hn = rnn(input, (h0))

However, this gives an error
forward() takes exactly 2 arguments (3 given)

although the same example works if I don’t use Sequential
rnn = nn.LSTM(10, 20, 2)
input = Variable(torch.randn(100, 3, 10))
h0 = Variable(torch.randn(2, 3, 20))
output, hn = rnn(input, (h0))

Can you please advice on this?
Thank you