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
Cresson Remi
otbtf
Commits
e678fb3e
Commit
e678fb3e
authored
Aug 23, 2019
by
Cresson Remi
Browse files
ENH: change deprecated TF tag constants
parent
0033b73a
Changes
1
Hide whitespace changes
Inline
Side-by-side
python/tricks.py
View file @
e678fb3e
...
...
@@ -131,8 +131,8 @@ def CreateSavedModel(sess, inputs, outputs, directory):
input_dict
,
output_dict
)
}
builder
.
add_meta_graph_and_variables
(
sess
,[
tf
.
saved_model
.
tag_constants
.
TRAINING
],
signature_def_map
)
builder
.
add_meta_graph
([
tf
.
saved_model
.
tag_constants
.
SERVING
])
builder
.
add_meta_graph_and_variables
(
sess
,[
tf
.
saved_model
.
TRAINING
],
signature_def_map
)
builder
.
add_meta_graph
([
tf
.
saved_model
.
SERVING
])
builder
.
save
()
def
CheckpointToSavedModel
(
ckpt_path
,
inputs
,
outputs
,
savedmodel_path
,
clear_devices
=
False
):
...
...
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