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
ModelZoo
ResNet50_tensorflow
Commits
0a83bef9
Unverified
Commit
0a83bef9
authored
Jun 06, 2019
by
Reed
Committed by
GitHub
Jun 06, 2019
Browse files
Include flags when reporting transformer benchmark (#6957)
parent
ce797486
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
official/transformer/v2/transformer_benchmark.py
official/transformer/v2/transformer_benchmark.py
+4
-1
No files found.
official/transformer/v2/transformer_benchmark.py
View file @
0a83bef9
...
...
@@ -24,6 +24,7 @@ from absl import flags
from
official.transformer.v2
import
misc
from
official.transformer.v2
import
transformer_main
as
transformer_main
from
official.utils.flags
import
core
as
flags_core
from
official.utils.testing.perfzero_benchmark
import
PerfZeroBenchmark
TRANSFORMER_EN2DE_DATA_DIR_NAME
=
'wmt32k-en2de-official'
...
...
@@ -103,7 +104,9 @@ class TransformerBenchmark(PerfZeroBenchmark):
metrics
.
append
({
'name'
:
'avg_exp_per_second'
,
'value'
:
stats
[
'avg_exp_per_second'
]})
self
.
report_benchmark
(
iters
=-
1
,
wall_time
=
wall_time_sec
,
metrics
=
metrics
)
flags_str
=
flags_core
.
get_nondefault_flags_as_str
()
self
.
report_benchmark
(
iters
=-
1
,
wall_time
=
wall_time_sec
,
metrics
=
metrics
,
extras
=
{
'flags'
:
flags_str
})
class
TransformerBaseKerasAccuracy
(
TransformerBenchmark
):
...
...
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