Skip to content

Commit

Permalink
fix print in benchmark (huggingface#5242)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickvonplaten authored Jun 24, 2020
1 parent 9fe09ce commit b296837
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/benchmark/benchmark_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def print_results(self, result_dict, type_label):
else:
result = str(result)
self.print_fn(
model_name.center(30) + str(batch_size).center(15),
model_name[:30].center(30) + str(batch_size).center(15),
str(sequence_length).center(15),
result.center(15),
)
Expand Down

0 comments on commit b296837

Please sign in to comment.