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
3fc4ab95
Commit
3fc4ab95
authored
Jul 13, 2020
by
Ruoxin Sang
Committed by
A. Unique TensorFlower
Jul 13, 2020
Browse files
Internal change
PiperOrigin-RevId: 321105003
parent
ca919737
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
orbit/controller.py
orbit/controller.py
+4
-2
No files found.
orbit/controller.py
View file @
3fc4ab95
...
@@ -151,8 +151,10 @@ class Controller(object):
...
@@ -151,8 +151,10 @@ class Controller(object):
checkpoint_interval
,
steps_per_loop
,
interval_name
=
"checkpoint"
)
checkpoint_interval
,
steps_per_loop
,
interval_name
=
"checkpoint"
)
model_restored
=
self
.
restore_checkpoint
()
model_restored
=
self
.
restore_checkpoint
()
if
not
model_restored
and
checkpoint_interval
:
if
not
model_restored
and
(
checkpoint_interval
and
# If the model is not restored from a checkpoint, save an initial
self
.
trainer
is
not
None
):
# If the model is not restored from a checkpoint, and
# `checkpoint_interval` is enabled for training, save an initial
# checkpoint.
# checkpoint.
self
.
save_checkpoint
()
self
.
save_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