Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
b2968373
Unverified
Commit
b2968373
authored
Jun 24, 2020
by
Patrick von Platen
Committed by
GitHub
Jun 24, 2020
Browse files
fix print in benchmark (#5242)
parent
9fe09cec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/benchmark/benchmark_utils.py
src/transformers/benchmark/benchmark_utils.py
+1
-1
No files found.
src/transformers/benchmark/benchmark_utils.py
View file @
b2968373
...
@@ -807,7 +807,7 @@ class Benchmark(ABC):
...
@@ -807,7 +807,7 @@ class Benchmark(ABC):
else
:
else
:
result
=
str
(
result
)
result
=
str
(
result
)
self
.
print_fn
(
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
),
str
(
sequence_length
).
center
(
15
),
result
.
center
(
15
),
result
.
center
(
15
),
)
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment