Skip to content

Commit

Permalink
Cleans up a trivial unnecessary logic.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 620433429
  • Loading branch information
The praxis Authors committed Mar 30, 2024
1 parent ab88791 commit 198029a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions praxis/sample_decode.py
Original file line number Diff line number Diff line change
Expand Up @@ -1281,10 +1281,6 @@ def put(target, key, val):
result_callback.done_fn()

if optimize_eos:
if fprop_for_prefix:
decode_length_shift = max_prefix_len
else:
decode_length_shift = 0
result = decoder_utils.collect_results_to_optimize_eos(
result, decode_length_shift=max_prefix_len
)
Expand Down

0 comments on commit 198029a

Please sign in to comment.