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
49eaaaf2
Unverified
Commit
49eaaaf2
authored
May 24, 2019
by
rxsang
Committed by
GitHub
May 24, 2019
Browse files
Add a graph optional_next Reset benchmark. (#6876)
* Add a graph optional_next Reset benchmark. * Fix lint error.
parent
3254cabb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
official/resnet/keras/keras_imagenet_benchmark.py
official/resnet/keras/keras_imagenet_benchmark.py
+21
-0
No files found.
official/resnet/keras/keras_imagenet_benchmark.py
View file @
49eaaaf2
...
@@ -724,6 +724,27 @@ class Resnet50KerasBenchmarkBase(keras_benchmark.KerasBenchmark):
...
@@ -724,6 +724,27 @@ class Resnet50KerasBenchmarkBase(keras_benchmark.KerasBenchmark):
FLAGS
.
tf_gpu_thread_mode
=
'gpu_private'
FLAGS
.
tf_gpu_thread_mode
=
'gpu_private'
self
.
_run_and_report_benchmark
()
self
.
_run_and_report_benchmark
()
def
benchmark_graph_xla_8_gpu_fp16_tweaked_optional_next
(
self
):
"""Test Keras model in legacy graph mode with manual config tuning, XLA,
8 GPUs and fp16.
This test also enables get_next_as_optional.
"""
self
.
_setup
()
FLAGS
.
num_gpus
=
8
FLAGS
.
dtype
=
'fp16'
FLAGS
.
enable_eager
=
False
FLAGS
.
enable_xla
=
True
FLAGS
.
distribution_strategy
=
'default'
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_graph_xla_8_gpu_fp16_tweaked_optional_next'
)
FLAGS
.
batch_size
=
256
*
8
# 8 GPUs
FLAGS
.
use_tensor_lr
=
True
FLAGS
.
tf_gpu_thread_mode
=
'gpu_private'
FLAGS
.
enable_get_next_as_optional
=
True
self
.
_run_and_report_benchmark
()
def
benchmark_graph_xla_8_gpu_fp16_slack
(
self
):
def
benchmark_graph_xla_8_gpu_fp16_slack
(
self
):
"""Test Keras model in legacy graph mode with tf.data's experimental_slack
"""Test Keras model in legacy graph mode with tf.data's experimental_slack
functionality, XLA, 8 GPUs and fp16.
functionality, XLA, 8 GPUs and fp16.
...
...
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