We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d7f74ae + 272803a commit edd7ba1Copy full SHA for edd7ba1
1 file changed
12_1_rnn_basics.py
@@ -12,7 +12,7 @@
12
cell = nn.RNN(input_size=4, hidden_size=2, batch_first=True)
13
14
# (num_layers * num_directions, batch, hidden_size) whether batch_first=True or False
15
-hidden = (Variable(torch.randn(1, 1, 2)))
+hidden = Variable(torch.randn(1, 1, 2))
16
17
# Propagate input through RNN
18
# Input: (batch, seq_len, input_size) when batch_first=True
0 commit comments