Skip to content

Commit

Permalink
Update optimum_benchmark/scenarios/energy_star/preprocessing_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil authored Nov 19, 2024
1 parent 82f1ef6 commit e9b5b32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def summarization_preprocessing(
if getattr(tokenizer, "pad_token", None) is None:
tokenizer.pad_token = tokenizer.eos_token

padding = False if config.input_shapes["batch_size"] == 1 else True
padding = config.input_shapes["batch_size"] != 1

def tokenize_function(examples):
return tokenizer(
Expand Down

0 comments on commit e9b5b32

Please sign in to comment.