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
03545dbf
Commit
03545dbf
authored
Jan 20, 2021
by
Le Hou
Committed by
A. Unique TensorFlower
Jan 20, 2021
Browse files
Internal change
PiperOrigin-RevId: 352912327
parent
68726442
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/modeling/progressive/trainer.py
official/modeling/progressive/trainer.py
+2
-1
No files found.
official/modeling/progressive/trainer.py
View file @
03545dbf
...
@@ -267,7 +267,8 @@ class ProgressiveTrainer(trainer_lib.Trainer):
...
@@ -267,7 +267,8 @@ class ProgressiveTrainer(trainer_lib.Trainer):
step_interval
=
self
.
config
.
trainer
.
checkpoint_interval
step_interval
=
self
.
config
.
trainer
.
checkpoint_interval
else
:
else
:
step_interval
=
self
.
config
.
trainer
.
export_checkpoint_interval
step_interval
=
self
.
config
.
trainer
.
export_checkpoint_interval
if
global_step_np
%
step_interval
!=
0
:
if
global_step_np
%
step_interval
!=
0
and
(
global_step_np
<
self
.
_config
.
trainer
.
train_steps
):
logging
.
info
(
'Not exporting checkpoints in global step: %d.'
,
logging
.
info
(
'Not exporting checkpoints in global step: %d.'
,
global_step_np
)
global_step_np
)
return
return
...
...
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