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
297a4bbc
Commit
297a4bbc
authored
Jun 03, 2021
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 377390629
parent
88a6cf61
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/benchmark/retinanet_benchmark.py
official/benchmark/retinanet_benchmark.py
+2
-2
No files found.
official/benchmark/retinanet_benchmark.py
View file @
297a4bbc
...
@@ -279,11 +279,11 @@ class DetectionBenchmarkReal(DetectionAccuracy):
...
@@ -279,11 +279,11 @@ class DetectionBenchmarkReal(DetectionAccuracy):
@
flagsaver
.
flagsaver
@
flagsaver
.
flagsaver
def
benchmark_4x4_tpu_coco
(
self
):
def
benchmark_4x4_tpu_coco
(
self
):
"""Run detection model accuracy test with 4 TPU
s
."""
"""Run detection model accuracy test with 4
x4
TPU."""
self
.
_setup
()
self
.
_setup
()
params
=
self
.
_params
()
params
=
self
.
_params
()
params
[
'train'
][
'batch_size'
]
=
256
params
[
'train'
][
'batch_size'
]
=
256
params
[
'train'
][
'total_steps'
]
=
469
#
One
epoch.
params
[
'train'
][
'total_steps'
]
=
10
*
469
#
10
epoch
s
.
params
[
'train'
][
'iterations_per_loop'
]
=
500
params
[
'train'
][
'iterations_per_loop'
]
=
500
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'real_benchmark_4x4_tpu_coco'
)
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'real_benchmark_4x4_tpu_coco'
)
FLAGS
.
strategy_type
=
'tpu'
FLAGS
.
strategy_type
=
'tpu'
...
...
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