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
6d3989eb
Unverified
Commit
6d3989eb
authored
Mar 28, 2019
by
Ayush Dubey
Committed by
GitHub
Mar 28, 2019
Browse files
Re-enable checkpoints for multi worker GPU strategies. (#6471)
parent
f5bb2af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
official/resnet/resnet_run_loop.py
official/resnet/resnet_run_loop.py
+1
-5
No files found.
official/resnet/resnet_run_loop.py
View file @
6d3989eb
...
...
@@ -550,14 +550,10 @@ def resnet_main(
# Creates a `RunConfig` that checkpoints every 24 hours which essentially
# results in checkpoints determined only by `epochs_between_evals`.
# TODO(ayushd,yuefengz): re-enable checkpointing for multi-worker strategy.
save_checkpoints_secs
=
(
None
if
distribution_strategy
.
__class__
.
__name__
in
[
'CollectiveAllReduceStrategy'
,
'MultiWorkerMirroredStrategy'
]
else
60
*
60
*
24
)
run_config
=
tf
.
estimator
.
RunConfig
(
train_distribute
=
distribution_strategy
,
session_config
=
session_config
,
save_checkpoints_secs
=
save_checkpoints_secs
,
save_checkpoints_secs
=
60
*
60
*
24
,
save_checkpoints_steps
=
None
)
# Initializes model with all but the dense layer from pretrained ResNet.
...
...
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