Skip to content

Commit e5ae052

Browse files
authored
Apply suggestions from code review
1 parent 8039ae1 commit e5ae052

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

optimum/intel/openvino/modeling_decoder.py

-1
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ def prepare_inputs(
404404

405405
# Create empty past_key_values for decoder_with_past first generation step
406406
elif self.use_cache:
407-
past_len = 0
408407
for input_name in self.key_value_input_names:
409408
model_inputs = self.model.input(input_name)
410409
shape = model_inputs.get_partial_shape()

0 commit comments

Comments
 (0)