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
1f21b69e
Commit
1f21b69e
authored
Oct 12, 2018
by
Toby Boyd
Browse files
forced nccl has same num_packs as default.
parent
bd86e960
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/utils/misc/distribution_utils.py
official/utils/misc/distribution_utils.py
+1
-1
No files found.
official/utils/misc/distribution_utils.py
View file @
1f21b69e
...
@@ -42,7 +42,7 @@ def get_distribution_strategy(num_gpus, all_reduce_alg=None):
...
@@ -42,7 +42,7 @@ def get_distribution_strategy(num_gpus, all_reduce_alg=None):
return
tf
.
contrib
.
distribute
.
MirroredStrategy
(
return
tf
.
contrib
.
distribute
.
MirroredStrategy
(
num_gpus
=
num_gpus
,
num_gpus
=
num_gpus
,
cross_tower_ops
=
tf
.
contrib
.
distribute
.
AllReduceCrossTowerOps
(
cross_tower_ops
=
tf
.
contrib
.
distribute
.
AllReduceCrossTowerOps
(
all_reduce_alg
,
num_packs
=
num_gpus
))
all_reduce_alg
,
num_packs
=
2
))
else
:
else
:
return
tf
.
contrib
.
distribute
.
MirroredStrategy
(
num_gpus
=
num_gpus
)
return
tf
.
contrib
.
distribute
.
MirroredStrategy
(
num_gpus
=
num_gpus
)
...
...
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