Skip to content

Commit

Permalink
name var consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
svlandeg committed Mar 6, 2021
1 parent 56017a4 commit a35ad58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions thinc/layers/lstm.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def PyTorchLSTM(

if depth == 0:
return noop() # type: ignore
n_hidden = nO
nH = nO
if bi:
n_hidden = nO // 2
nH = nO // 2
pytorch_rnn = PyTorchRNNWrapper(
torch.nn.LSTM(nI, n_hidden, depth, bidirectional=bi, dropout=dropout)
torch.nn.LSTM(nI, nH, depth, bidirectional=bi, dropout=dropout)
)
pytorch_rnn.set_dim("nO", nO)
pytorch_rnn.set_dim("nI", nI)
Expand Down

0 comments on commit a35ad58

Please sign in to comment.