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
70b343d0
Commit
70b343d0
authored
Jul 19, 2021
by
Brandon Jiang
Committed by
A. Unique TensorFlower
Jul 19, 2021
Browse files
Internal change
PiperOrigin-RevId: 385672449
parent
1a6f0d73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
official/benchmark/resnet50_keras_core.py
official/benchmark/resnet50_keras_core.py
+9
-0
No files found.
official/benchmark/resnet50_keras_core.py
View file @
70b343d0
...
@@ -89,11 +89,20 @@ def _run_benchmark():
...
@@ -89,11 +89,20 @@ def _run_benchmark():
class
Resnet50KerasCoreBenchmark
(
perfzero_benchmark
.
PerfZeroBenchmark
):
class
Resnet50KerasCoreBenchmark
(
perfzero_benchmark
.
PerfZeroBenchmark
):
"""Resnet50 Keras core benchmarks."""
def
benchmark_1_gpu
(
self
):
def
benchmark_1_gpu
(
self
):
wall_time
=
_run_benchmark
()
wall_time
=
_run_benchmark
()
self
.
report_benchmark
(
iters
=-
1
,
wall_time
=
wall_time
)
self
.
report_benchmark
(
iters
=-
1
,
wall_time
=
wall_time
)
def
benchmark_1_gpu_avg_3
(
self
):
num_trials
=
3
wall_times
=
[]
for
_
in
range
(
num_trials
):
wall_times
.
append
(
_run_benchmark
())
avg_wall_time
=
sum
(
wall_times
)
/
float
(
len
(
wall_times
))
self
.
report_benchmark
(
iters
=-
1
,
wall_time
=
avg_wall_time
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
tf
.
test
.
main
()
tf
.
test
.
main
()
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