Should not variables be passed instead of tensors in the examples given in documentation

Should not variables be passed instead of tensors in the examples given in documentation. For example the example given for LSTM on page https://pytorch.org/docs/master/nn.html?highlight=lstm#torch.nn.LSTM is

rnn = nn.LSTM(10, 20, 2)
input = torch.randn(5, 3, 10)
h0 = torch.randn(2, 3, 20)
c0 = torch.randn(2, 3, 20)
output, (hn, cn) = rnn(input, (h0, c0))

Should not be it

rnn = nn.LSTM(10, 20, 2)
input = Variable(torch.randn(5, 3, 10))
h0 = Variable(torch.randn(2, 3, 20))
c0 = Variable(torch.randn(2, 3, 20))
output, (hn, cn) = rnn(input, (h0, c0))

Hi,
Since pytorch 0.4 was released, Variables and Tensors were merged that’s why it should not be using Variable.
The documentation is for pytorch 0.5 unstable developer docs