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
0effd158
Commit
0effd158
authored
Nov 27, 2019
by
Sai Ganesh Bandiatmakuri
Committed by
A. Unique TensorFlower
Nov 27, 2019
Browse files
Internal change
PiperOrigin-RevId: 282857541
parent
61d6173d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
official/staging/shakespeare/shakespeare_benchmark.py
official/staging/shakespeare/shakespeare_benchmark.py
+4
-3
No files found.
official/staging/shakespeare/shakespeare_benchmark.py
View file @
0effd158
...
@@ -88,6 +88,7 @@ class ShakespeareBenchmarkBase(PerfZeroBenchmark):
...
@@ -88,6 +88,7 @@ class ShakespeareBenchmarkBase(PerfZeroBenchmark):
elapsed
=
time_log
[
-
1
].
timestamp
-
time_log
[
warmup
].
timestamp
elapsed
=
time_log
[
-
1
].
timestamp
-
time_log
[
warmup
].
timestamp
num_examples
=
(
num_examples
=
(
total_batch_size
*
log_steps
*
(
len
(
time_log
)
-
warmup
-
1
))
total_batch_size
*
log_steps
*
(
len
(
time_log
)
-
warmup
-
1
))
if
elapsed
>
0
:
examples_per_sec
=
num_examples
/
elapsed
examples_per_sec
=
num_examples
/
elapsed
metrics
.
append
({
'name'
:
'exp_per_second'
,
metrics
.
append
({
'name'
:
'exp_per_second'
,
'value'
:
examples_per_sec
})
'value'
:
examples_per_sec
})
...
...
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