Skip to content

Commit fc806fc

Browse files
committed
asdf
1 parent 57c3a00 commit fc806fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtext/prototype/generate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def update_func(emissions, N, T, prev_step_token_idxs, prev_step_hyp_idxs, prev_
308308
if num_finished_hyps_in_step > 0:
309309
beam_idxs = F.pad(beam_idxs, (0, num_finished_hyps_in_step), "constant", 0)
310310

311-
reordered_cached = model_kwargs["past"] #self.model._reorder_cache(model_kwargs["past"], beam_idxs)
311+
reordered_cached = self.model._reorder_cache(model_kwargs["past"], beam_idxs)
312312

313313
if num_finished_hyps_in_step > 0:
314314
sliced_cache = ()

0 commit comments

Comments
 (0)