Skip to content

Commit f23ed44

Browse files
bmccannsoumith
authored andcommitted
removing unused variables
1 parent 8bb7c5a commit f23ed44

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

OpenNMT/onmt/Models.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,6 @@ def __init__(self, opt, dicts):
9494
def forward(self, input, hidden, context, init_output):
9595
emb = self.word_lut(input)
9696

97-
batch_size = input.size(1)
98-
99-
h_size = (batch_size, self.hidden_size)
100-
10197
# n.b. you can increase performance if you compute W_ih * x for all
10298
# iterations in parallel, but that's only possible if
10399
# self.input_feed=False

0 commit comments

Comments
 (0)