Skip to content

Commit

Permalink
fix incorrect reference (hunkim#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
robd2 committed Sep 25, 2018
1 parent edd7ba1 commit 8cb5f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 12_4_hello_rnn_emb.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def forward(self, x):
# Initialize hidden and cell states
# (num_layers * num_directions, batch, hidden_size)
h_0 = Variable(torch.zeros(
self.num_layers, x.size(0), self.hidden_size))
num_layers, x.size(0), hidden_size))

emb = self.embedding(x)
emb = emb.view(batch_size, sequence_length, -1)
Expand Down

1 comment on commit 8cb5f21

@hellojinwoo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

robd2 is right on this point

Please sign in to comment.