Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

lstm pytorch documentation

>>> 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))
Source by pytorch.org #
 
PREVIOUS NEXT
Tagged: #lstm #pytorch #documentation
ADD COMMENT
Topic
Name
2+4 =