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
226f9419
Commit
226f9419
authored
Jul 23, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 462851231
parent
391f22eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
official/core/savedmodel_checkpoint_manager.py
official/core/savedmodel_checkpoint_manager.py
+3
-1
No files found.
official/core/savedmodel_checkpoint_manager.py
View file @
226f9419
...
...
@@ -71,9 +71,11 @@ class SavedModelCheckpointManager(tf.train.CheckpointManager):
# Save the models for the checkpoint that just got written.
saved_modules_directory
=
make_saved_modules_directory_name
(
checkpoint_path
)
for
model_name
,
model
in
self
.
_modules_to_export
.
items
():
signatures
=
getattr
(
model
,
'saved_model_signatures'
,
None
)
tf
.
saved_model
.
save
(
obj
=
model
,
export_dir
=
os
.
path
.
join
(
saved_modules_directory
,
model_name
))
export_dir
=
os
.
path
.
join
(
saved_modules_directory
,
model_name
),
signatures
=
signatures
)
saved_modules_directories_to_keep
=
[
make_saved_modules_directory_name
(
ckpt
)
for
ckpt
in
self
.
checkpoints
...
...
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