I am trying to write a binary addition code, I have to provide two bits at a time  so input shape should
be (1,2) and I am taking hidden layer size 16
rnn = nn.RNN(2, 16, 1)
input = torch.randn(1, 2)
h0 = torch.randn(2, 16)
output, hn = rnn(input, h0)

I am getting error input must have 3 dimensions, got 2 when defining input ,