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
ddbf3833
Commit
ddbf3833
authored
Jul 09, 2019
by
Yuhao Zhang
Committed by
Toby Boyd
Jul 08, 2019
Browse files
specify the 'num_gpus' argument (#7157)
parent
3768f4cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/deep_speech/deep_speech.py
research/deep_speech/deep_speech.py
+1
-1
No files found.
research/deep_speech/deep_speech.py
View file @
ddbf3833
...
@@ -223,7 +223,7 @@ def run_deep_speech(_):
...
@@ -223,7 +223,7 @@ def run_deep_speech(_):
# Use distribution strategy for multi-gpu training
# Use distribution strategy for multi-gpu training
num_gpus
=
flags_core
.
get_num_gpus
(
flags_obj
)
num_gpus
=
flags_core
.
get_num_gpus
(
flags_obj
)
distribution_strategy
=
distribution_utils
.
get_distribution_strategy
(
num_gpus
)
distribution_strategy
=
distribution_utils
.
get_distribution_strategy
(
num_gpus
=
num_gpus
)
run_config
=
tf
.
estimator
.
RunConfig
(
run_config
=
tf
.
estimator
.
RunConfig
(
train_distribute
=
distribution_strategy
)
train_distribute
=
distribution_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