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
0319908c
Commit
0319908c
authored
Mar 07, 2018
by
Zhichao Lu
Committed by
lzc5123016
Mar 07, 2018
Browse files
Fix typos to enable sync training.
PiperOrigin-RevId: 188251743
parent
e55685d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
research/object_detection/trainer.py
research/object_detection/trainer.py
+2
-2
No files found.
research/object_detection/trainer.py
View file @
0319908c
...
@@ -258,10 +258,10 @@ def train(create_tensor_dict_fn, create_model_fn, train_config, master, task,
...
@@ -258,10 +258,10 @@ def train(create_tensor_dict_fn, create_model_fn, train_config, master, task,
sync_optimizer
=
None
sync_optimizer
=
None
if
train_config
.
sync_replicas
:
if
train_config
.
sync_replicas
:
training_optimizer
=
tf
.
SyncReplicasOptimizer
(
training_optimizer
=
tf
.
train
.
SyncReplicasOptimizer
(
training_optimizer
,
training_optimizer
,
replicas_to_aggregate
=
train_config
.
replicas_to_aggregate
,
replicas_to_aggregate
=
train_config
.
replicas_to_aggregate
,
total_num_replicas
=
train_config
.
worker_replicas
)
total_num_replicas
=
worker_replicas
)
sync_optimizer
=
training_optimizer
sync_optimizer
=
training_optimizer
# Create ops required to initialize the model from a given checkpoint.
# Create ops required to initialize the model from a given checkpoint.
...
...
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