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
62466ee0
You need to sign in or sign up before continuing.
Commit
62466ee0
authored
Jul 15, 2021
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jul 15, 2021
Browse files
Internal change
PiperOrigin-RevId: 384957416
parent
9caaba0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/core/export_base.py
official/core/export_base.py
+1
-1
No files found.
official/core/export_base.py
View file @
62466ee0
...
@@ -82,7 +82,7 @@ def export(export_module: ExportModule,
...
@@ -82,7 +82,7 @@ def export(export_module: ExportModule,
The savedmodel directory path.
The savedmodel directory path.
"""
"""
ckpt_dir_or_file
=
checkpoint_path
ckpt_dir_or_file
=
checkpoint_path
if
tf
.
io
.
gfile
.
isdir
(
ckpt_dir_or_file
):
if
ckpt_dir_or_file
is
not
None
and
tf
.
io
.
gfile
.
isdir
(
ckpt_dir_or_file
):
ckpt_dir_or_file
=
tf
.
train
.
latest_checkpoint
(
ckpt_dir_or_file
)
ckpt_dir_or_file
=
tf
.
train
.
latest_checkpoint
(
ckpt_dir_or_file
)
if
ckpt_dir_or_file
:
if
ckpt_dir_or_file
:
checkpoint
=
tf
.
train
.
Checkpoint
(
model
=
export_module
.
model
)
checkpoint
=
tf
.
train
.
Checkpoint
(
model
=
export_module
.
model
)
...
...
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