Skip to content

Commit

Permalink
Update model_attention.py
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
yaoli committed Nov 30, 2016
1 parent 97773d6 commit 22e7647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model_attention.py
Expand Up @@ -753,7 +753,7 @@ def gen_sample(self, tparams, f_init, f_next, ctx0, ctx_mask, options,

for idx, [ti, wi] in enumerate(zip(trans_indices, word_indices)):
new_hyp_samples.append(hyp_samples[ti]+[wi])
new_hyp_scores[idx] = copy.copy(costs[ti])
new_hyp_scores[idx] = copy.copy(costs[idx])
for lidx in xrange(n_layers_lstm):
new_hyp_states[lidx].append(copy.copy(next_state[lidx][ti]))
for lidx in xrange(n_layers_lstm):
Expand Down

0 comments on commit 22e7647

Please sign in to comment.