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
68650c42
Unverified
Commit
68650c42
authored
May 23, 2019
by
rxsang
Committed by
GitHub
May 23, 2019
Browse files
Fix non dist strat case. (#6867)
parent
abe9e96a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
official/resnet/keras/keras_imagenet_main.py
official/resnet/keras/keras_imagenet_main.py
+7
-6
No files found.
official/resnet/keras/keras_imagenet_main.py
View file @
68650c42
...
@@ -129,12 +129,13 @@ def run(flags_obj):
...
@@ -129,12 +129,13 @@ def run(flags_obj):
all_reduce_alg
=
flags_obj
.
all_reduce_alg
,
all_reduce_alg
=
flags_obj
.
all_reduce_alg
,
num_packs
=
flags_obj
.
num_packs
)
num_packs
=
flags_obj
.
num_packs
)
# flags_obj.enable_get_next_as_optional controls whether enabling
if
strategy
:
# get_next_as_optional behavior in DistributedIterator. If true, last partial
# flags_obj.enable_get_next_as_optional controls whether enabling
# batch can be supported.
# get_next_as_optional behavior in DistributedIterator. If true, last
strategy
.
extended
.
experimental_enable_get_next_as_optional
=
(
# partial batch can be supported.
flags_obj
.
enable_get_next_as_optional
strategy
.
extended
.
experimental_enable_get_next_as_optional
=
(
)
flags_obj
.
enable_get_next_as_optional
)
strategy_scope
=
distribution_utils
.
get_strategy_scope
(
strategy
)
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