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
ed6c805a
Unverified
Commit
ed6c805a
authored
Feb 01, 2019
by
Shining Sun
Committed by
GitHub
Feb 01, 2019
Browse files
Flag (#6121)
* Fix the turn_off_ds flag problem * add param names to all args
parent
23721cf2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
official/resnet/keras/keras_cifar_main.py
official/resnet/keras/keras_cifar_main.py
+2
-1
official/resnet/keras/keras_imagenet_main.py
official/resnet/keras/keras_imagenet_main.py
+2
-1
No files found.
official/resnet/keras/keras_cifar_main.py
View file @
ed6c805a
...
@@ -136,7 +136,8 @@ def run(flags_obj):
...
@@ -136,7 +136,8 @@ def run(flags_obj):
parse_record_fn
=
parse_record_keras
)
parse_record_fn
=
parse_record_keras
)
strategy
=
distribution_utils
.
get_distribution_strategy
(
strategy
=
distribution_utils
.
get_distribution_strategy
(
flags_obj
.
num_gpus
,
flags_obj
.
turn_off_distribution_strategy
)
num_gpus
=
flags_obj
.
num_gpus
,
turn_off_distribution_strategy
=
flags_obj
.
turn_off_distribution_strategy
)
strategy_scope
=
keras_common
.
get_strategy_scope
(
strategy
)
strategy_scope
=
keras_common
.
get_strategy_scope
(
strategy
)
...
...
official/resnet/keras/keras_imagenet_main.py
View file @
ed6c805a
...
@@ -125,7 +125,8 @@ def run(flags_obj):
...
@@ -125,7 +125,8 @@ def run(flags_obj):
parse_record_fn
=
parse_record_keras
)
parse_record_fn
=
parse_record_keras
)
strategy
=
distribution_utils
.
get_distribution_strategy
(
strategy
=
distribution_utils
.
get_distribution_strategy
(
flags_obj
.
num_gpus
,
flags_obj
.
turn_off_distribution_strategy
)
num_gpus
=
flags_obj
.
num_gpus
,
turn_off_distribution_strategy
=
flags_obj
.
turn_off_distribution_strategy
)
strategy_scope
=
keras_common
.
get_strategy_scope
(
strategy
)
strategy_scope
=
keras_common
.
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