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
fad183f8
"mmdet3d/datasets/vscode:/vscode.git/clone" did not exist on "d8084bdec09ec59522a20e105d375c194634ac17"
Commit
fad183f8
authored
May 27, 2020
by
Pengchong Jin
Committed by
A. Unique TensorFlower
May 27, 2020
Browse files
Internal change
PiperOrigin-RevId: 313475975
parent
5b8d66b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
official/benchmark/retinanet_benchmark.py
official/benchmark/retinanet_benchmark.py
+6
-0
No files found.
official/benchmark/retinanet_benchmark.py
View file @
fad183f8
...
@@ -176,6 +176,9 @@ class RetinanetAccuracy(RetinanetBenchmarkBase):
...
@@ -176,6 +176,9 @@ class RetinanetAccuracy(RetinanetBenchmarkBase):
def
_params
(
self
):
def
_params
(
self
):
return
{
return
{
'architecture'
:
{
'use_bfloat16'
:
True
,
},
'train'
:
{
'train'
:
{
'batch_size'
:
64
,
'batch_size'
:
64
,
'iterations_per_loop'
:
100
,
'iterations_per_loop'
:
100
,
...
@@ -225,6 +228,7 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
...
@@ -225,6 +228,7 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
"""Run RetinaNet model accuracy test with 8 GPUs."""
"""Run RetinaNet model accuracy test with 8 GPUs."""
self
.
_setup
()
self
.
_setup
()
params
=
self
.
_params
()
params
=
self
.
_params
()
params
[
'architecture'
][
'use_bfloat16'
]
=
False
params
[
'train'
][
'total_steps'
]
=
1875
# One epoch.
params
[
'train'
][
'total_steps'
]
=
1875
# One epoch.
# The iterations_per_loop must be one, otherwise the number of examples per
# The iterations_per_loop must be one, otherwise the number of examples per
# second would be wrong. Currently only support calling callback per batch
# second would be wrong. Currently only support calling callback per batch
...
@@ -244,6 +248,7 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
...
@@ -244,6 +248,7 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
"""Run RetinaNet model accuracy test with 1 GPU."""
"""Run RetinaNet model accuracy test with 1 GPU."""
self
.
_setup
()
self
.
_setup
()
params
=
self
.
_params
()
params
=
self
.
_params
()
params
[
'architecture'
][
'use_bfloat16'
]
=
False
params
[
'train'
][
'batch_size'
]
=
8
params
[
'train'
][
'batch_size'
]
=
8
params
[
'train'
][
'total_steps'
]
=
200
params
[
'train'
][
'total_steps'
]
=
200
params
[
'train'
][
'iterations_per_loop'
]
=
1
params
[
'train'
][
'iterations_per_loop'
]
=
1
...
@@ -258,6 +263,7 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
...
@@ -258,6 +263,7 @@ class RetinanetBenchmarkReal(RetinanetAccuracy):
"""Run RetinaNet model accuracy test with 1 GPU and XLA enabled."""
"""Run RetinaNet model accuracy test with 1 GPU and XLA enabled."""
self
.
_setup
()
self
.
_setup
()
params
=
self
.
_params
()
params
=
self
.
_params
()
params
[
'architecture'
][
'use_bfloat16'
]
=
False
params
[
'train'
][
'batch_size'
]
=
8
params
[
'train'
][
'batch_size'
]
=
8
params
[
'train'
][
'total_steps'
]
=
200
params
[
'train'
][
'total_steps'
]
=
200
params
[
'train'
][
'iterations_per_loop'
]
=
1
params
[
'train'
][
'iterations_per_loop'
]
=
1
...
...
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