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
956f295f
Commit
956f295f
authored
Sep 12, 2019
by
Ayush Dubey
Committed by
A. Unique TensorFlower
Sep 12, 2019
Browse files
Set `datasets_num_private_threads` flag for multi-worker tuned benchmarks.
PiperOrigin-RevId: 268836696
parent
cbf29854
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
official/benchmark/keras_imagenet_benchmark.py
official/benchmark/keras_imagenet_benchmark.py
+2
-0
No files found.
official/benchmark/keras_imagenet_benchmark.py
View file @
956f295f
...
@@ -990,6 +990,7 @@ class Resnet50MultiWorkerKerasAccuracy(keras_benchmark.KerasBenchmark):
...
@@ -990,6 +990,7 @@ class Resnet50MultiWorkerKerasAccuracy(keras_benchmark.KerasBenchmark):
FLAGS
.
distribution_strategy
=
'multi_worker_mirrored'
FLAGS
.
distribution_strategy
=
'multi_worker_mirrored'
FLAGS
.
use_tensor_lr
=
True
FLAGS
.
use_tensor_lr
=
True
FLAGS
.
tf_gpu_thread_mode
=
'gpu_private'
FLAGS
.
tf_gpu_thread_mode
=
'gpu_private'
FLAGS
.
datasets_num_private_threads
=
32
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_{}_8_gpu_{}_worker_fp16_{}_tweaked'
.
format
(
'benchmark_{}_8_gpu_{}_worker_fp16_{}_tweaked'
.
format
(
'eager'
if
eager
else
'graph'
,
num_workers
,
all_reduce_alg
))
'eager'
if
eager
else
'graph'
,
num_workers
,
all_reduce_alg
))
...
@@ -1068,6 +1069,7 @@ class Resnet50MultiWorkerKerasBenchmark(Resnet50KerasBenchmarkBase):
...
@@ -1068,6 +1069,7 @@ class Resnet50MultiWorkerKerasBenchmark(Resnet50KerasBenchmarkBase):
FLAGS
.
distribution_strategy
=
'multi_worker_mirrored'
FLAGS
.
distribution_strategy
=
'multi_worker_mirrored'
FLAGS
.
use_tensor_lr
=
True
FLAGS
.
use_tensor_lr
=
True
FLAGS
.
tf_gpu_thread_mode
=
'gpu_private'
FLAGS
.
tf_gpu_thread_mode
=
'gpu_private'
FLAGS
.
datasets_num_private_threads
=
32
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
FLAGS
.
model_dir
=
self
.
_get_model_dir
(
'benchmark_{}_8_gpu_{}_worker_fp16_{}_tweaked'
.
format
(
'benchmark_{}_8_gpu_{}_worker_fp16_{}_tweaked'
.
format
(
'eager'
if
eager
else
'graph'
,
num_workers
,
all_reduce_alg
))
'eager'
if
eager
else
'graph'
,
num_workers
,
all_reduce_alg
))
...
...
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