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
ac47458a
Unverified
Commit
ac47458a
authored
Aug 29, 2020
by
Sam Shleifer
Committed by
GitHub
Aug 29, 2020
Browse files
[s2s] round runtime in run_eval (#6798)
parent
5ab21b07
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/seq2seq/run_eval.py
examples/seq2seq/run_eval.py
+1
-1
No files found.
examples/seq2seq/run_eval.py
View file @
ac47458a
...
...
@@ -67,7 +67,7 @@ def generate_summaries_or_translations(
fout
.
write
(
hypothesis
+
"
\n
"
)
fout
.
flush
()
fout
.
close
()
runtime
=
time
.
time
()
-
start_time
runtime
=
int
(
time
.
time
()
-
start_time
)
# seconds
n_obs
=
len
(
examples
)
return
dict
(
n_obs
=
n_obs
,
runtime
=
runtime
,
seconds_per_sample
=
round
(
runtime
/
n_obs
,
4
))
...
...
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