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
ba0a6f60
Unverified
Commit
ba0a6f60
authored
Mar 12, 2019
by
Toby Boyd
Committed by
GitHub
Mar 12, 2019
Browse files
Add fp16 to 8 gpu fp16 tests. (#6353)
parent
19daade4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
official/resnet/keras/keras_imagenet_benchmark.py
official/resnet/keras/keras_imagenet_benchmark.py
+3
-2
No files found.
official/resnet/keras/keras_imagenet_benchmark.py
View file @
ba0a6f60
...
...
@@ -277,6 +277,7 @@ class Resnet50KerasBenchmarkBase(keras_benchmark.KerasBenchmark):
self
.
_setup
()
FLAGS
.
num_gpus
=
8
FLAGS
.
dtype
=
'fp16'
FLAGS
.
enable_eager
=
True
FLAGS
.
distribution_strategy
=
'default'
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_8_gpu_fp16'
)
...
...
@@ -288,6 +289,7 @@ class Resnet50KerasBenchmarkBase(keras_benchmark.KerasBenchmark):
self
.
_setup
()
FLAGS
.
num_gpus
=
8
FLAGS
.
dtype
=
'fp16'
FLAGS
.
enable_eager
=
True
FLAGS
.
enable_xla
=
True
FLAGS
.
distribution_strategy
=
'default'
...
...
@@ -315,8 +317,7 @@ class Resnet50KerasBenchmarkBase(keras_benchmark.KerasBenchmark):
FLAGS
.
enable_xla
=
True
FLAGS
.
distribution_strategy
=
'default'
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_graph_xla_8_gpu'
)
# TODO(haoyuzhang): Set size to 128 per GPU when multi-GPU XLA OOM is fixed
FLAGS
.
batch_size
=
64
*
8
# 8 GPUs
FLAGS
.
batch_size
=
128
*
8
# 8 GPUs
self
.
_run_and_report_benchmark
()
def
fill_report_object
(
self
,
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