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
f52accfe
Commit
f52accfe
authored
Jul 27, 2021
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 387234573
parent
8dd291f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
official/benchmark/resnet50_keras_core.py
official/benchmark/resnet50_keras_core.py
+7
-0
No files found.
official/benchmark/resnet50_keras_core.py
View file @
f52accfe
...
@@ -103,6 +103,13 @@ class Resnet50KerasCoreBenchmark(perfzero_benchmark.PerfZeroBenchmark):
...
@@ -103,6 +103,13 @@ class Resnet50KerasCoreBenchmark(perfzero_benchmark.PerfZeroBenchmark):
avg_wall_time
=
sum
(
wall_times
)
/
float
(
len
(
wall_times
))
avg_wall_time
=
sum
(
wall_times
)
/
float
(
len
(
wall_times
))
self
.
report_benchmark
(
iters
=-
1
,
wall_time
=
avg_wall_time
)
self
.
report_benchmark
(
iters
=-
1
,
wall_time
=
avg_wall_time
)
def
benchmark_1_gpu_max_3
(
self
):
num_trials
=
3
wall_times
=
[]
for
_
in
range
(
num_trials
):
wall_times
.
append
(
_run_benchmark
())
max_wall_time
=
max
(
wall_times
)
self
.
report_benchmark
(
iters
=-
1
,
wall_time
=
max_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