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
f5073f49
Unverified
Commit
f5073f49
authored
May 07, 2019
by
Haoyu Zhang
Committed by
GitHub
May 07, 2019
Browse files
Use flags to define collective ops when initializing MirroredStrategy (#6724)
parent
0f76239b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
official/resnet/keras/keras_imagenet_main.py
official/resnet/keras/keras_imagenet_main.py
+3
-1
No files found.
official/resnet/keras/keras_imagenet_main.py
View file @
f5073f49
...
...
@@ -125,7 +125,9 @@ def run(flags_obj):
strategy
=
distribution_utils
.
get_distribution_strategy
(
distribution_strategy
=
flags_obj
.
distribution_strategy
,
num_gpus
=
flags_obj
.
num_gpus
,
num_workers
=
distribution_utils
.
configure_cluster
())
num_workers
=
distribution_utils
.
configure_cluster
(),
all_reduce_alg
=
flags_obj
.
all_reduce_alg
,
num_packs
=
flags_obj
.
num_packs
)
strategy_scope
=
distribution_utils
.
get_strategy_scope
(
strategy
)
...
...
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