Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 0899ad8

Browse files
committed
asdf
1 parent 208f2ea commit 0899ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchtext/prototype/generate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def update_func(emissions, N, T, prev_step_token_idxs, prev_step_hyp_idxs, prev_
303303
if num_finished_hyps_in_step > 0:
304304
beam_idxs = F.pad(beam_idxs, (0, num_finished_hyps_in_step), "constant", 0)
305305

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

308308
if num_finished_hyps_in_step > 0:
309309
sliced_cache = ()

0 commit comments

Comments
 (0)