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
225eda71
Commit
225eda71
authored
Mar 13, 2020
by
Will Cromar
Committed by
A. Unique TensorFlower
Mar 13, 2020
Browse files
Internal change
PiperOrigin-RevId: 300850465
parent
c25e3e01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
official/benchmark/resnet_ctl_imagenet_benchmark.py
official/benchmark/resnet_ctl_imagenet_benchmark.py
+3
-4
No files found.
official/benchmark/resnet_ctl_imagenet_benchmark.py
View file @
225eda71
...
@@ -87,10 +87,9 @@ class CtlBenchmark(PerfZeroBenchmark):
...
@@ -87,10 +87,9 @@ class CtlBenchmark(PerfZeroBenchmark):
# first entry in the time_log is start of step 0. The rest of the
# first entry in the time_log is start of step 0. The rest of the
# entries are the end of each step recorded
# entries are the end of each step recorded
time_log
=
stats
[
'step_timestamp_log'
]
time_log
=
stats
[
'step_timestamp_log'
]
elapsed
=
time_log
[
-
1
].
timestamp
-
time_log
[
warmup
].
timestamp
steps_elapsed
=
time_log
[
-
1
].
batch_index
-
time_log
[
warmup
].
batch_index
num_examples
=
(
time_elapsed
=
time_log
[
-
1
].
timestamp
-
time_log
[
warmup
].
timestamp
total_batch_size
*
log_steps
*
(
len
(
time_log
)
-
warmup
-
1
))
examples_per_sec
=
total_batch_size
*
(
steps_elapsed
/
time_elapsed
)
examples_per_sec
=
num_examples
/
elapsed
metrics
.
append
({
'name'
:
'exp_per_second'
,
'value'
:
examples_per_sec
})
metrics
.
append
({
'name'
:
'exp_per_second'
,
'value'
:
examples_per_sec
})
if
'avg_exp_per_second'
in
stats
:
if
'avg_exp_per_second'
in
stats
:
...
...
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