Skip to content

Commit edd7ba1

Browse files
authored
Merge pull request #22 from jaejun-yoo/patch-1
Remove unnecessary parenthesis
2 parents d7f74ae + 272803a commit edd7ba1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

12_1_rnn_basics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
cell = nn.RNN(input_size=4, hidden_size=2, batch_first=True)
1313

1414
# (num_layers * num_directions, batch, hidden_size) whether batch_first=True or False
15-
hidden = (Variable(torch.randn(1, 1, 2)))
15+
hidden = Variable(torch.randn(1, 1, 2))
1616

1717
# Propagate input through RNN
1818
# Input: (batch, seq_len, input_size) when batch_first=True

0 commit comments

Comments
 (0)