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
d62ddcaa
Unverified
Commit
d62ddcaa
authored
Jun 18, 2019
by
Toby Boyd
Committed by
GitHub
Jun 18, 2019
Browse files
Log flags. (#7053)
parent
01c3a4f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
official/bert/benchmark/benchmark_utils.py
official/bert/benchmark/benchmark_utils.py
+5
-2
No files found.
official/bert/benchmark/benchmark_utils.py
View file @
d62ddcaa
...
...
@@ -28,6 +28,8 @@ from absl.testing import flagsaver
import
tensorflow
as
tf
# pylint: enable=g-bad-import-order
from
official.utils.flags
import
core
as
flags_core
FLAGS
=
flags
.
FLAGS
...
...
@@ -113,8 +115,9 @@ class BertBenchmarkBase(tf.test.Benchmark):
'min_value'
:
min_accuracy
,
'max_value'
:
max_accuracy
,
})
flags_str
=
flags_core
.
get_nondefault_flags_as_str
()
self
.
report_benchmark
(
iters
=
stats
[
'total_training_steps'
],
wall_time
=
wall_time_sec
,
metrics
=
metrics
)
metrics
=
metrics
,
extras
=
{
'flags'
:
flags_str
})
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